mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: game filter parity
This commit is contained in:
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'}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user