diff --git a/public/app/features/org/OrgDetailsPage.tsx b/public/app/features/org/OrgDetailsPage.tsx new file mode 100644 index 00000000000..08d98e1216e --- /dev/null +++ b/public/app/features/org/OrgDetailsPage.tsx @@ -0,0 +1,131 @@ +import React, { PureComponent } from 'react'; +import { hot } from 'react-hot-loader'; +import { connect } from 'react-redux'; +import PageHeader from '../../core/components/PageHeader/PageHeader'; +import { loadOrganisation } from './state/actions'; +import { NavModel, Organisation, OrganisationPreferences, StoreState } from 'app/types'; +import { getNavModel } from '../../core/selectors/navModel'; + +export interface Props { + navModel: NavModel; + organisation: Organisation; + preferences: OrganisationPreferences; + loadOrganisation: typeof loadOrganisation; +} + +interface State { + orgName: string; + hasSet: boolean; +} + +export class OrgDetailsPage extends PureComponent { + state = { + orgName: '', + hasSet: false, + }; + + async componentDidMount() { + await this.props.loadOrganisation(); + } + + onOrgNameChange = event => { + this.setState({ + orgName: event.target.value, + }); + }; + + onSubmitForm = event => {}; + + render() { + const { navModel, preferences } = this.props; + + const themes: any = [ + { value: '', text: 'Default' }, + { value: 'dark', text: 'Dark' }, + { value: 'light', text: 'Light' }, + ]; + + return ( +
+ +
+

Organisation profile

+
+
+
+ Organization name + +
+
+ +
+ +
+
+
+

Preferences

+ +
+ UI Theme +
+ +
+
+ +
+ + Home Dashboard + {/**/} + {/*Not finding dashboard you want? Star it first, then it should appear in this select box.*/} + {/**/} + + {/**/} +
+ +
+ +
+