* build: bump deps and add some new eslint rules * refactor: run eslint --fix on code to convert to type imports where possible
21 lines
811 B
TypeScript
21 lines
811 B
TypeScript
import type { NextPage } from 'next';
|
|
import React from 'react';
|
|
import UserSettings from '../../../../../components/UserProfile/UserSettings';
|
|
import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings';
|
|
import UserNotificationsTelegram from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram';
|
|
import useRouteGuard from '../../../../../hooks/useRouteGuard';
|
|
import { Permission } from '../../../../../hooks/useUser';
|
|
|
|
const NotificationsPage: NextPage = () => {
|
|
useRouteGuard(Permission.MANAGE_USERS);
|
|
return (
|
|
<UserSettings>
|
|
<UserNotificationSettings>
|
|
<UserNotificationsTelegram />
|
|
</UserNotificationSettings>
|
|
</UserSettings>
|
|
);
|
|
};
|
|
|
|
export default NotificationsPage;
|