mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 12:18:35 -05:00
feat: user edit functionality (managing permissions)
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
import React from 'react';
|
||||
import { NextPage } from 'next';
|
||||
import UserProfile from '../../components/UserProfile';
|
||||
|
||||
const UserProfilePage: NextPage = () => {
|
||||
return <UserProfile />;
|
||||
};
|
||||
|
||||
export default UserProfilePage;
|
||||
12
src/pages/users/[userId]/edit.tsx
Normal file
12
src/pages/users/[userId]/edit.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
import { NextPage } from 'next';
|
||||
import UserEdit from '../../../components/UserEdit';
|
||||
import useRouteGuard from '../../../hooks/useRouteGuard';
|
||||
import { Permission } from '../../../hooks/useUser';
|
||||
|
||||
const UserProfilePage: NextPage = () => {
|
||||
useRouteGuard(Permission.MANAGE_USERS);
|
||||
return <UserEdit />;
|
||||
};
|
||||
|
||||
export default UserProfilePage;
|
||||
@@ -1,8 +1,11 @@
|
||||
import React from 'react';
|
||||
import type { NextPage } from 'next';
|
||||
import UserList from '../../components/UserList';
|
||||
import useRouteGuard from '../../hooks/useRouteGuard';
|
||||
import { Permission } from '../../hooks/useUser';
|
||||
|
||||
const UsersPage: NextPage = () => {
|
||||
useRouteGuard(Permission.MANAGE_USERS);
|
||||
return <UserList />;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user