feat: change global role on administration page (#61)
* feat: change global role on administration page * feat: change global role on administration page test code todo * feat: change global role on administration page test code * feat: change global role on administration page * feat: change global role on administration page * feat: change global role on administration page * feat: change global role on administration page * feat: change global role on administration page
This commit is contained in:
@@ -2,11 +2,11 @@ import { useTranslations } from 'next-intl';
|
||||
import AdminPage from './AdminPage';
|
||||
import { PageType } from '@/types/base';
|
||||
import { LocaleCodeType } from '@/types/locale';
|
||||
import { AdminMessages } from '@/types/user';
|
||||
|
||||
export default function Page({ params }: PageType) {
|
||||
const t = useTranslations('Admin');
|
||||
const messages = {
|
||||
admin: t('admin'),
|
||||
const messages: AdminMessages = {
|
||||
userManagement: t('user_management'),
|
||||
avatar: t('avatar'),
|
||||
id: t('id'),
|
||||
@@ -16,6 +16,13 @@ export default function Page({ params }: PageType) {
|
||||
administrator: t('administrator'),
|
||||
user: t('user'),
|
||||
noUsersFound: t('no_users_found'),
|
||||
quitAdmin: t('quit_admin'),
|
||||
quit: t('quit'),
|
||||
quitConfirm: t('quit_confirm'),
|
||||
close: t('close'),
|
||||
roleChanged: t('role_changed'),
|
||||
lostAdminAuth: t('lost_admin_auth'),
|
||||
atLeast: t('at_least'),
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user