Fixing last couple of auth dialogs

This commit is contained in:
John Lyon-Smith
2018-03-24 10:53:34 -07:00
parent ce25d56dfe
commit cb708c720f
16 changed files with 312 additions and 274 deletions

View File

@@ -149,12 +149,12 @@ export class UserForm extends React.Component {
<Row>
<Row.Item>
<BoundButton text='Change Email' name='changeEmail' binder={binder}
width={sizeInfo.formButtonLarge} onClick={this.handleChangeEmail} />
width={sizeInfo.buttonWideWidth} onClick={this.handleChangeEmail} />
</Row.Item>
<Row.Item grow />
<Row.Item>
<BoundButton text='Resend Confirmation Email' name='resendEmail' binder={binder}
width={sizeInfo.formButtonLarge} onClick={this.handleResendEmail} />
width={sizeInfo.buttonWideWidth} onClick={this.handleResendEmail} />
</Row.Item>
</Row>
</Column.Item>

View File

@@ -11,7 +11,7 @@ import { sizeInfo, colorInfo } from 'ui/style'
export class Users extends Component {
static propTypes = {
onChangeTitle: PropTypes.func.isRequired,
changeTitle: PropTypes.func.isRequired,
}
constructor(props) {
@@ -28,7 +28,7 @@ export class Users extends Component {
}
componentDidMount() {
this.props.onChangeTitle('Users')
this.props.changeTitle('Users')
api.listUsers().then((list) => {
list.items.sort((userA, userB) => (userA.lastName.localeCompare(userB.lastName)))
@@ -45,7 +45,7 @@ export class Users extends Component {
}
componentWillUnmount() {
this.props.onChangeTitle('')
this.props.changeTitle('')
}
removeUnfinishedNewUser() {