grafana/public/app/features/explore/FeatureTogglePage.tsx
Torkel Ödegaard 1e85a6f4fd
TopNav: New page layouts (#51510)
* First stab at new page layouts behind feature toggle

* Simplifying PageHeader

* Progress on a new model that can more easily support new and old page layouts

* Progress

* rename folder

* Progress

* Minor change

* fixes

* Fixing tests

* Make breadcrumbs work

* Add tests for old Page component

* Adding tests for new Page component and behavior

* fixing page header test

* Fixed test

* AppChrome outside route

* Renaming folder

* Minor fix

* Updated

* Fixing StoragePage

* Fix for banners

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-07-06 17:00:56 +02:00

32 lines
684 B
TypeScript

import { css } from '@emotion/css';
import React from 'react';
import { GrafanaTheme2 } from '@grafana/data';
import { useStyles2 } from '@grafana/ui';
import { Page } from 'app/core/components/Page/Page';
export default function FeatureTogglePage() {
const styles = useStyles2(
(theme: GrafanaTheme2) =>
css`
margin-top: ${theme.spacing(2)};
`
);
return (
<Page className={styles}>
<Page.Contents>
<h1>Explore is disabled</h1>
To enable Explore, enable it in the Grafana config:
<div>
<pre>
{`[explore]
enable = true
`}
</pre>
</div>
</Page.Contents>
</Page>
);
}