Add saved state and user to Party object
This commit is contained in:
parent
7915ec2385
commit
b78994b68c
2 changed files with 7 additions and 2 deletions
1
types/Party.d.ts
vendored
1
types/Party.d.ts
vendored
|
|
@ -4,6 +4,7 @@ interface Party {
|
||||||
raid: Raid
|
raid: Raid
|
||||||
shortcode: string
|
shortcode: string
|
||||||
extra: boolean
|
extra: boolean
|
||||||
|
favorited: boolean
|
||||||
characters: Array<GridCharacter>
|
characters: Array<GridCharacter>
|
||||||
weapons: Array<GridWeapon>
|
weapons: Array<GridWeapon>
|
||||||
summons: Array<GridSummon>
|
summons: Array<GridSummon>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,9 @@ interface AppState {
|
||||||
description: string | undefined,
|
description: string | undefined,
|
||||||
raid: Raid | undefined,
|
raid: Raid | undefined,
|
||||||
element: number,
|
element: number,
|
||||||
extra: boolean
|
extra: boolean,
|
||||||
|
user: User | undefined,
|
||||||
|
favorited: boolean
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
weapons: {
|
weapons: {
|
||||||
|
|
@ -40,7 +42,9 @@ export const initialAppState: AppState = {
|
||||||
description: undefined,
|
description: undefined,
|
||||||
raid: undefined,
|
raid: undefined,
|
||||||
element: 0,
|
element: 0,
|
||||||
extra: false
|
extra: false,
|
||||||
|
user: undefined,
|
||||||
|
favorited: false
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
weapons: {
|
weapons: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue