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

@@ -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() {