feat: game filter parity

This commit is contained in:
TrèsAbhi committed 2024-02-03 16:44:10 -06:00
1 parent 273ab97d3f
commit 559fb30da9
2 files changed
+5 -11

No files matched your search

@@ -107,7 +107,7 @@ export function Options() {
))} ))}
</Flex> </Flex>
<Flex style={{ flex: 1 }}> <Flex style={{ flex: 1 }}>
{[...TANK_TYPES].reverse().map((type, index) => ( {[...TANK_TYPES].map((type, index) => (
<Button <Button
key={type} key={type}
color={filters.types.includes(type) ? undefined : 'gray'} color={filters.types.includes(type) ? undefined : 'gray'}
@@ -147,10 +147,7 @@ export function Options() {
style={{ width: '100%' }} style={{ width: '100%' }}
> >
<Flex> <Flex>
{[...TIERS] {[...TIERS].slice(0, 5).map((tier, index) => (
.reverse()
.slice(0, 5)
.map((tier, index) => (
<Button <Button
key={tier} key={tier}
color={filters.tiers.includes(tier) ? undefined : 'gray'} color={filters.tiers.includes(tier) ? undefined : 'gray'}
@@ -183,10 +180,7 @@ export function Options() {
))} ))}
</Flex> </Flex>
<Flex> <Flex>
{[...TIERS] {[...TIERS].slice(5).map((tier, index) => (
.reverse()
.slice(5)
.map((tier, index) => (
<Button <Button
key={tier} key={tier}
color={filters.tiers.includes(tier) ? undefined : 'gray'} color={filters.tiers.includes(tier) ? undefined : 'gray'}
@@ -299,7 +293,7 @@ export function Options() {
<Flex gap="2" style={{ flex: 1 }} wrap="wrap"> <Flex gap="2" style={{ flex: 1 }} wrap="wrap">
<Flex className={styles.oneLineFilters} style={{ flex: 1 }}> <Flex className={styles.oneLineFilters} style={{ flex: 1 }}>
{[...TIERS].reverse().map((tier, index) => ( {[...TIERS].map((tier, index) => (
<Button <Button
key={tier} key={tier}
color={filters.tiers.includes(tier) ? undefined : 'gray'} color={filters.tiers.includes(tier) ? undefined : 'gray'}
+1 -1
View File
@@ -6,10 +6,10 @@ import {
import { theme } from '../../../stitches.config'; import { theme } from '../../../stitches.config';
export const TANK_TYPES = [ export const TANK_TYPES = [
'tankDestroyer',
'light', 'light',
'medium', 'medium',
'heavy', 'heavy',
'tankDestroyer',
] as const; ] as const;
// TODO: remove hyphen for underscore // TODO: remove hyphen for underscore