Add recent dictionary to app state
This commit is contained in:
parent
baddad41a9
commit
7c263167cd
1 changed files with 10 additions and 2 deletions
|
|
@ -28,7 +28,11 @@ interface AppState {
|
||||||
characters: GridArray<GridCharacter>
|
characters: GridArray<GridCharacter>
|
||||||
},
|
},
|
||||||
search: {
|
search: {
|
||||||
sourceItem: GridCharacter | GridWeapon | GridSummon | undefined
|
recents: {
|
||||||
|
characters: Character[]
|
||||||
|
weapons: Weapon[]
|
||||||
|
summons: Summon[]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
raids: Raid[]
|
raids: Raid[]
|
||||||
}
|
}
|
||||||
|
|
@ -59,7 +63,11 @@ export const initialAppState: AppState = {
|
||||||
characters: {}
|
characters: {}
|
||||||
},
|
},
|
||||||
search: {
|
search: {
|
||||||
sourceItem: undefined
|
recents: {
|
||||||
|
characters: [],
|
||||||
|
weapons: [],
|
||||||
|
summons: []
|
||||||
|
}
|
||||||
},
|
},
|
||||||
raids: []
|
raids: []
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue