Skip to content

Commit

Permalink
fix: xxs/xxl names
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jan 12, 2024
1 parent 9212bb5 commit d6a8906
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/layout/dialogs/filters/Advanced.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export default function AdvancedFilter() {
items={XXS_XXL}
field={`filters.${category}.filter.${id}`}
disabled={filters.all}
label="size_1-size_5"
/>
)}
{category === 'pokestops' && <QuestConditionSelector id={id} />}
Expand Down
4 changes: 3 additions & 1 deletion src/components/layout/drawer/BoolToggle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ export function DualBoolToggle({
switchColor,
secondColor,
field,
label,
...props
}) {
const labels = label?.split('-') || []
return (
<Grid2 container component={ListItem} disablePadding disableGutters>
{items.map((item, i) => (
Expand All @@ -84,7 +86,7 @@ export function DualBoolToggle({
<BoolToggle
// @ts-ignore
field={`${field}.${item}`}
label={item}
label={labels[i] || labels[0] || item}
disablePadding
disableGutters
align="center"
Expand Down
1 change: 1 addition & 0 deletions src/components/layout/drawer/Pokemon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ function PokemonDrawer() {
<DualBoolToggle
items={XXS_XXL}
field="filters.pokemon.ivOr"
label="size_1-size_5"
/>
) : (
<>
Expand Down

0 comments on commit d6a8906

Please sign in to comment.