This also hides the api key from users without the ADMIN permission. It will not be returned from the api for them. Regenerate functionality is not in the commit.
18 lines
503 B
TypeScript
18 lines
503 B
TypeScript
import React from 'react';
|
|
import { NextPage } from 'next';
|
|
import SettingsLayout from '../../components/Settings/SettingsLayout';
|
|
import SettingsMain from '../../components/Settings/SettingsMain';
|
|
import useRouteGuard from '../../hooks/useRouteGuard';
|
|
import { Permission } from '../../hooks/useUser';
|
|
|
|
const SettingsPage: NextPage = () => {
|
|
useRouteGuard(Permission.MANAGE_SETTINGS);
|
|
return (
|
|
<SettingsLayout>
|
|
<SettingsMain />
|
|
</SettingsLayout>
|
|
);
|
|
};
|
|
|
|
export default SettingsPage;
|