grafana/public/app/features/profile/FeatureTogglePage.tsx
Cameron Waterman 8426cfe400
Profile/Help: Expose option to disable profile section and help menu (#46308)
* Expose option to disable help menu

* Expose option to disable profile menu

* Add Profile FeatureTogglePage

* Update public/app/features/profile/FeatureTogglePage.tsx

Uptake PR wording suggestion.

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Fix front end lint issue

* Fix back end lint issue

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2022-03-29 16:27:53 +01:00

24 lines
536 B
TypeScript

import React from 'react';
import Page from 'app/core/components/Page/Page';
import { useNavModel } from 'app/core/hooks/useNavModel';
export default function FeatureTogglePage() {
const navModel = useNavModel('profile-settings');
return (
<Page navModel={navModel}>
<Page.Contents>
<h1>Profile is not enabled.</h1>
Enable profile in the Grafana config file.
<div>
<pre>
{`[profile]
enable = true
`}
</pre>
</div>
</Page.Contents>
</Page>
);
}