update users module to use new pending and error state

This commit is contained in:
Sebastian Sdorra
2018-07-30 13:38:15 +02:00
parent 9e029c0c5c
commit 7be1366c1a
14 changed files with 274 additions and 443 deletions

View File

@@ -35,7 +35,10 @@ class Page extends React.Component<Props> {
}
renderContent() {
const { loading, children } = this.props;
const { loading, children, error } = this.props;
if (error) {
return null;
}
if (loading) {
return <Loading />;
}