mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
1e85a6f4fd
* 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>
32 lines
684 B
TypeScript
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>
|
|
);
|
|
}
|