Create admin page

This commit is contained in:
Takeshi Kimata
2024-05-26 20:50:23 +09:00
parent 7d071303dd
commit a573358a85
19 changed files with 330 additions and 14 deletions

View File

@@ -24,6 +24,7 @@ export type TokenContextType = {
user: UserType;
};
isSignedIn: () => Boolean;
isAdmin: () => Boolean;
setToken: (token: TokenType) => {};
storeTokenToLocalStorage: (token: TokenType) => {};
removeTokenFromLocalStorage: () => {};
@@ -48,6 +49,16 @@ export type AuthMessages = {
signinError: string;
};
export type AdminMessages = {
userManagement: string;
avatar: string;
id: string;
email: string;
username: string;
role: string;
noUsersFound: string;
};
export type AccountDropDownMessages = {
account: string;
signUp: string;