-
-
Notifications
You must be signed in to change notification settings - Fork 413
/
Copy pathcreateOrganization.js
37 lines (30 loc) · 966 Bytes
/
createOrganization.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React from 'react';
import PropTypes from 'prop-types';
import CreateOrganization from '../components/CreateOrganization';
import ErrorPage from '../components/ErrorPage';
import Page from '../components/Page';
import { withUser } from '../components/UserProvider';
class CreateOrganizationPage extends React.Component {
static propTypes = {
LoggedInUser: PropTypes.object,
loadingLoggedInUser: PropTypes.bool,
refetchLoggedInUser: PropTypes.func.isRequired,
};
constructor(props) {
super(props);
}
render() {
const { LoggedInUser, loadingLoggedInUser, refetchLoggedInUser } = this.props;
if (loadingLoggedInUser) {
return <ErrorPage loading />;
}
return (
<Page>
<CreateOrganization LoggedInUser={LoggedInUser} refetchLoggedInUser={refetchLoggedInUser} />
</Page>
);
}
}
// next.js export
// ts-unused-exports:disable-next-line
export default withUser(CreateOrganizationPage);