FeatureTogglePage.tsx 680 B

12345678910111213141516171819202122232425262728293031
  1. import { css } from '@emotion/css';
  2. import React from 'react';
  3. import { GrafanaTheme2 } from '@grafana/data';
  4. import { useStyles2 } from '@grafana/ui';
  5. import Page from 'app/core/components/Page/Page';
  6. export default function FeatureTogglePage() {
  7. const styles = useStyles2(
  8. (theme: GrafanaTheme2) =>
  9. css`
  10. margin-top: ${theme.spacing(2)};
  11. `
  12. );
  13. return (
  14. <Page className={styles}>
  15. <Page.Contents>
  16. <h1>Explore is disabled</h1>
  17. To enable Explore, enable it in the Grafana config:
  18. <div>
  19. <pre>
  20. {`[explore]
  21. enable = true
  22. `}
  23. </pre>
  24. </div>
  25. </Page.Contents>
  26. </Page>
  27. );
  28. }