mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* 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
.
33 lines
700 B
TypeScript
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>
|
|
);
|
|
}
|