Implement Auth account dropdown
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user