Update Party type and state
This commit is contained in:
parent
534d608171
commit
0b3861e03e
3 changed files with 8 additions and 0 deletions
|
|
@ -154,6 +154,8 @@ const Party = (props: Props) => {
|
||||||
appState.party.extra = team.extra
|
appState.party.extra = team.extra
|
||||||
appState.party.user = team.user
|
appState.party.user = team.user
|
||||||
appState.party.favorited = team.favorited
|
appState.party.favorited = team.favorited
|
||||||
|
appState.party.remix = team.remix
|
||||||
|
appState.party.remixes = team.remixes
|
||||||
appState.party.created_at = team.created_at
|
appState.party.created_at = team.created_at
|
||||||
appState.party.updated_at = team.updated_at
|
appState.party.updated_at = team.updated_at
|
||||||
|
|
||||||
|
|
|
||||||
2
types/Party.d.ts
vendored
2
types/Party.d.ts
vendored
|
|
@ -28,6 +28,8 @@ interface Party {
|
||||||
weapons: Array<GridWeapon>
|
weapons: Array<GridWeapon>
|
||||||
summons: Array<GridSummon>
|
summons: Array<GridSummon>
|
||||||
user: User
|
user: User
|
||||||
|
remix: boolean
|
||||||
|
remixes: Party[]
|
||||||
created_at: string
|
created_at: string
|
||||||
updated_at: string
|
updated_at: string
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@ interface AppState {
|
||||||
extra: boolean
|
extra: boolean
|
||||||
user: User | undefined
|
user: User | undefined
|
||||||
favorited: boolean
|
favorited: boolean
|
||||||
|
remix: boolean
|
||||||
|
remixes: Party[]
|
||||||
created_at: string
|
created_at: string
|
||||||
updated_at: string
|
updated_at: string
|
||||||
}
|
}
|
||||||
|
|
@ -113,6 +115,8 @@ export const initialAppState: AppState = {
|
||||||
extra: false,
|
extra: false,
|
||||||
user: undefined,
|
user: undefined,
|
||||||
favorited: false,
|
favorited: false,
|
||||||
|
remix: false,
|
||||||
|
remixes: [],
|
||||||
created_at: '',
|
created_at: '',
|
||||||
updated_at: '',
|
updated_at: '',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue