feat: complete sort labels

This commit is contained in:
TrèsAbhi committed 2024-06-24 21:00:51 -05:00
1 parent 77105b514e
commit 8bcd74262c
10 files changed
+200 -177

No files matched your search

+2 -2
View File
@@ -106,7 +106,7 @@ export type ArmorPiercingLayer =
};
export const SORT_NAMES = {
'meta.tier': 'tier',
'meta.none': 'none',
'survivability.health': 'health',
'survivability.viewRange': 'view range',
'survivability.camouflageStill': 'camouflage still',
@@ -150,7 +150,7 @@ export const useTankopediaPersistent = create<TankopediaPersistent>()(
},
},
sort: {
by: 'meta.tier',
by: 'meta.none',
direction: 'descending',
},
filters: {
+2 -2
View File
@@ -5,7 +5,7 @@ import { Tier } from '../core/blitzkit/tankDefinitions';
import { TankopediaSortBy, TankopediaSortDirection } from './tankopedia';
export interface TankopediaFilters {
tier: Tier;
tier?: Tier;
nation?: string;
class?: TankClass;
type?: TreeType;
@@ -21,7 +21,7 @@ export interface TankopediaFilters {
export const useTankopediaFilters = create<TankopediaFilters>()(() => ({
testing: 'include',
sort: {
by: 'meta.tier',
by: 'meta.none',
direction: 'descending',
},
tier: 10,