Implement Auth account dropdown

This commit is contained in:
Takeshi Kimata
2024-05-19 13:33:08 +09:00
parent 3d141cf05b
commit a5b218f55e
11 changed files with 172 additions and 66 deletions

View File

@@ -12,11 +12,18 @@ export type TokenProps = {
};
export type TokenType = {
access_token: string;
user: UserType;
};
export type TokenContextType = {
token: {
access_token: string;
user: UserType;
};
setToken: () => {};
setToken: (token: TokenType) => {};
storeTokenToLocalStorage: (token: TokenType) => {};
removeTokenFromLocalStorage: () => {};
};
export type AuthMessages = {
@@ -36,3 +43,10 @@ export type AuthMessages = {
signupError: string;
signinError: string;
};
export type AccountDropDownMessages = {
account: string;
signUp: string;
signIn: string;
signOut: string;
};