// @flow import React, { Component } from 'react'; import { observer, inject } from 'mobx-react'; import Flex from 'shared/components/Flex'; import Sidebar, { Section } from './Sidebar'; import Scrollable from 'components/Scrollable'; import ProfileIcon from 'components/Icon/ProfileIcon'; import SettingsIcon from 'components/Icon/SettingsIcon'; import CodeIcon from 'components/Icon/CodeIcon'; import UserIcon from 'components/Icon/UserIcon'; import Header from './components/Header'; import SidebarLink from './components/SidebarLink'; import HeaderBlock from './components/HeaderBlock'; import AuthStore from 'stores/AuthStore'; type Props = { history: Object, auth: AuthStore, }; @observer class SettingsSidebar extends Component { props: Props; returnToDashboard = () => { this.props.history.push('/'); }; render() { const { team } = this.props.auth; if (!team) return; return (
Account
}> Profile }> API Tokens
Team
}> Members } > Integrations
); } } export default inject('auth')(SettingsSidebar);