mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-19 17:58:24 -05:00
fixes #188
This commit is contained in:
parent
ef135e744d
commit
2de0b4b0a9
|
|
@ -1,7 +1,7 @@
|
|||
import { Select, Tag, TagCloseButton, TagLabel } from "@chakra-ui/react";
|
||||
import { t } from "@lingui/macro";
|
||||
import { useLingui } from "@lingui/react";
|
||||
import { weaponsWithHeroCategorized } from "lib/lists/weaponsWithHero";
|
||||
import { weaponsWithHero } from "lib/lists/weaponsWithHero";
|
||||
import WeaponImage from "./WeaponImage";
|
||||
|
||||
interface Props {
|
||||
|
|
@ -26,14 +26,10 @@ const MultiWeaponSelector: React.FC<Props> = ({ name, value, onChange }) => {
|
|||
<option hidden value="">
|
||||
{t`Select weapon`}
|
||||
</option>
|
||||
{weaponsWithHeroCategorized.map((wpnCategory) => (
|
||||
<optgroup key={wpnCategory.name} label={i18n._(wpnCategory.name)}>
|
||||
{wpnCategory.weapons.map((wpn) => (
|
||||
<option key={wpn} value={wpn}>
|
||||
{i18n._(wpn)}
|
||||
</option>
|
||||
))}
|
||||
</optgroup>
|
||||
{weaponsWithHero.map((wpn) => (
|
||||
<option key={wpn} value={wpn}>
|
||||
{i18n._(wpn)}
|
||||
</option>
|
||||
))}
|
||||
</Select>
|
||||
{value.map((wpn) => (
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user