feat: start of static armor mode

This commit is contained in:
TrèsAbhi committed 2024-07-24 20:09:38 -05:00
1 parent 3d0c87579b
commit ee58b3543e
5 files changed
+149 -93

No files matched your search

+3
View File
@@ -13,6 +13,7 @@ export type TankopediaSortBy = keyof typeof SORT_NAMES;
export type TankopediaSortDirection = 'ascending' | 'descending';
export type TankopediaTestTankDisplay = 'include' | 'exclude' | 'only';
export type TankopediaMode = 'model' | 'armor';
export type TankopediaArmorMode = 'blitz' | 'static';
export interface TankopediaPersistent {
model: {
@@ -39,6 +40,7 @@ export interface TankopediaPersistent {
page: number;
};
mode: TankopediaMode;
armorMode: TankopediaArmorMode;
}
export const { Provider, use, useMutation, useStore } = createNextSafeStore(
@@ -70,6 +72,7 @@ export const { Provider, use, useMutation, useStore } = createNextSafeStore(
page: 0,
},
mode: 'model',
armorMode: 'blitz',
})),
{ name: 'tankopedia', merge: (a, b) => merge(b, a) },
),