From 7c263167cd8b3d8cadbe47a10df2daf01fd91dda Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 11 Mar 2022 01:57:51 -0800 Subject: [PATCH] Add recent dictionary to app state --- utils/appState.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/utils/appState.tsx b/utils/appState.tsx index 81d6db31..0a4ed54d 100644 --- a/utils/appState.tsx +++ b/utils/appState.tsx @@ -28,7 +28,11 @@ interface AppState { characters: GridArray }, search: { - sourceItem: GridCharacter | GridWeapon | GridSummon | undefined + recents: { + characters: Character[] + weapons: Weapon[] + summons: Summon[] + } }, raids: Raid[] } @@ -59,7 +63,11 @@ export const initialAppState: AppState = { characters: {} }, search: { - sourceItem: undefined + recents: { + characters: [], + weapons: [], + summons: [] + } }, raids: [] }