Add source party to Party definition

This commit is contained in:
Justin Edmund 2023-01-28 00:26:23 -08:00
parent 522be622ab
commit 86b48f52c1
3 changed files with 4 additions and 0 deletions

View file

@ -156,6 +156,7 @@ const Party = (props: Props) => {
appState.party.favorited = team.favorited
appState.party.remix = team.remix
appState.party.remixes = team.remixes
appState.party.sourceParty = team.source_party
appState.party.created_at = team.created_at
appState.party.updated_at = team.updated_at

1
types/Party.d.ts vendored
View file

@ -18,6 +18,7 @@ interface Party {
button_count?: number
turn_count?: number
chain_count?: number
source_party?: Party
job: Job
job_skills: JobSkillObject
accessory: JobAccessory

View file

@ -58,6 +58,7 @@ interface AppState {
favorited: boolean
remix: boolean
remixes: Party[]
sourceParty?: Party
created_at: string
updated_at: string
}
@ -117,6 +118,7 @@ export const initialAppState: AppState = {
favorited: false,
remix: false,
remixes: [],
sourceParty: undefined,
created_at: '',
updated_at: '',
},