grafana/public/app/features/explore/FeatureTogglePage.tsx
Giordano Ricci 9770768efc
Chore: refactor some styles in explore to use the object syntax (#80080)
* Chore: refactor some styles in explore to use the object syntax

* refactor LiveLogs styles to use object syntax

* Revert "refactor LiveLogs styles to use object syntax"

This reverts commit 293aa2589f.
2024-01-16 19:49:12 +00:00

33 lines
700 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';
function getStyles(theme: GrafanaTheme2) {
return css({
marginTop: theme.spacing(2),
});
}
export default function FeatureTogglePage() {
const styles = useStyles2(getStyles);
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>
);
}