From 86b48f52c186e3f9c5d62c7cc5d01650ef6e3d4f Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 28 Jan 2023 00:26:23 -0800 Subject: [PATCH] Add source party to Party definition --- components/Party/index.tsx | 1 + types/Party.d.ts | 1 + utils/appState.tsx | 2 ++ 3 files changed, 4 insertions(+) diff --git a/components/Party/index.tsx b/components/Party/index.tsx index 1b0c063e..f9f2196b 100644 --- a/components/Party/index.tsx +++ b/components/Party/index.tsx @@ -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 diff --git a/types/Party.d.ts b/types/Party.d.ts index d3ac6f29..eebea134 100644 --- a/types/Party.d.ts +++ b/types/Party.d.ts @@ -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 diff --git a/utils/appState.tsx b/utils/appState.tsx index 59c5c2cb..816ba19a 100644 --- a/utils/appState.tsx +++ b/utils/appState.tsx @@ -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: '', },