Add user info in account state
This commit is contained in:
parent
d688ade570
commit
1a39108e38
1 changed files with 7 additions and 2 deletions
|
|
@ -5,14 +5,19 @@ interface AccountState {
|
||||||
|
|
||||||
account: {
|
account: {
|
||||||
authorized: boolean,
|
authorized: boolean,
|
||||||
language: 'en' | 'jp'
|
language: 'en' | 'jp',
|
||||||
|
user: {
|
||||||
|
id: string,
|
||||||
|
username: string
|
||||||
|
} | undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const initialAccountState: AccountState = {
|
export const initialAccountState: AccountState = {
|
||||||
account: {
|
account: {
|
||||||
authorized: false,
|
authorized: false,
|
||||||
language: 'en'
|
language: 'en',
|
||||||
|
user: undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue