Update Party type and state

This commit is contained in:
Justin Edmund 2023-01-27 23:47:31 -08:00
parent 534d608171
commit 0b3861e03e
3 changed files with 8 additions and 0 deletions

View file

@ -154,6 +154,8 @@ const Party = (props: Props) => {
appState.party.extra = team.extra
appState.party.user = team.user
appState.party.favorited = team.favorited
appState.party.remix = team.remix
appState.party.remixes = team.remixes
appState.party.created_at = team.created_at
appState.party.updated_at = team.updated_at

2
types/Party.d.ts vendored
View file

@ -28,6 +28,8 @@ interface Party {
weapons: Array<GridWeapon>
summons: Array<GridSummon>
user: User
remix: boolean
remixes: Party[]
created_at: string
updated_at: string
}

View file

@ -56,6 +56,8 @@ interface AppState {
extra: boolean
user: User | undefined
favorited: boolean
remix: boolean
remixes: Party[]
created_at: string
updated_at: string
}
@ -113,6 +115,8 @@ export const initialAppState: AppState = {
extra: false,
user: undefined,
favorited: false,
remix: false,
remixes: [],
created_at: '',
updated_at: '',
},