mirror of https://github.com/vector-im/riot-web
Remove riot logo from the security setup screens
With a little faff to make the rounded borders consistent againpull/21833/head
parent
8d59cb4632
commit
5319ee4572
|
@ -95,6 +95,10 @@ limitations under the License.
|
|||
}
|
||||
}
|
||||
|
||||
.mx_AuthBody_noHeader {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.mx_AuthBody_editServerDetails {
|
||||
padding-left: 1em;
|
||||
font-size: 12px;
|
||||
|
|
|
@ -161,8 +161,7 @@ export default class CompleteSecurity extends React.Component {
|
|||
|
||||
return (
|
||||
<AuthPage>
|
||||
<AuthHeader />
|
||||
<AuthBody>
|
||||
<AuthBody header={false}>
|
||||
<h2 className="mx_CompleteSecurity_header">
|
||||
{icon}
|
||||
{title}
|
||||
|
|
|
@ -17,10 +17,26 @@ limitations under the License.
|
|||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import classnames from 'classnames';
|
||||
|
||||
export default class AuthBody extends React.PureComponent {
|
||||
static PropTypes = {
|
||||
header: PropTypes.bool,
|
||||
};
|
||||
|
||||
static defaultProps = {
|
||||
header: true,
|
||||
};
|
||||
|
||||
render() {
|
||||
return <div className="mx_AuthBody">
|
||||
const classes = {
|
||||
'mx_AuthBody': true,
|
||||
'mx_AuthBody_noHeader': !this.props.header,
|
||||
};
|
||||
|
||||
return <div className={classnames(classes)}>
|
||||
{ this.props.children }
|
||||
</div>;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue