main.tsx 509 B

1234567891011121314151617
  1. import {browserHistory, Router} from 'react-router';
  2. import DemoHeader from 'sentry/components/demo/demoHeader';
  3. import ThemeAndStyleProvider from 'sentry/components/themeAndStyleProvider';
  4. import routes from 'sentry/routes';
  5. import ConfigStore from 'sentry/stores/configStore';
  6. function Main() {
  7. return (
  8. <ThemeAndStyleProvider>
  9. {ConfigStore.get('demoMode') && <DemoHeader />}
  10. <Router history={browserHistory}>{routes()}</Router>
  11. </ThemeAndStyleProvider>
  12. );
  13. }
  14. export default Main;