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
536 B
TypeScript
18 lines
536 B
TypeScript
import React from 'react';
|
|
import type { NextPage } from 'next';
|
|
import SettingsLayout from '../../components/Settings/SettingsLayout';
|
|
import SettingsServices from '../../components/Settings/SettingsServices';
|
|
import { Permission } from '../../hooks/useUser';
|
|
import useRouteGuard from '../../hooks/useRouteGuard';
|
|
|
|
const ServicesSettingsPage: NextPage = () => {
|
|
useRouteGuard(Permission.MANAGE_SETTINGS);
|
|
return (
|
|
<SettingsLayout>
|
|
<SettingsServices />
|
|
</SettingsLayout>
|
|
);
|
|
};
|
|
|
|
export default ServicesSettingsPage;
|