mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
fix: keys
This commit is contained in:
1 parent
408a14003c
commit
f885fba4bd
1 file changed
+6
-2
@@ -220,6 +220,7 @@ function NationsFilter() {
|
|||||||
<Flex>
|
<Flex>
|
||||||
{nations.map((nation, index) => (
|
{nations.map((nation, index) => (
|
||||||
<img
|
<img
|
||||||
|
key={nation}
|
||||||
style={{
|
style={{
|
||||||
filter: "drop-shadow(0 0 var(--space-1) var(--black-a11))",
|
filter: "drop-shadow(0 0 var(--space-1) var(--black-a11))",
|
||||||
marginLeft: index > 0 ? "-0.5em" : undefined,
|
marginLeft: index > 0 ? "-0.5em" : undefined,
|
||||||
@@ -325,6 +326,7 @@ function ClassFilter() {
|
|||||||
const Icon = classIcons[tankClass];
|
const Icon = classIcons[tankClass];
|
||||||
return (
|
return (
|
||||||
<Icon
|
<Icon
|
||||||
|
key={tankClass}
|
||||||
style={{
|
style={{
|
||||||
color: "var(--gray-12)",
|
color: "var(--gray-12)",
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
@@ -333,7 +335,6 @@ function ClassFilter() {
|
|||||||
width: "1.25em",
|
width: "1.25em",
|
||||||
height: "1.25em",
|
height: "1.25em",
|
||||||
}}
|
}}
|
||||||
key={tankClass}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
@@ -348,6 +349,7 @@ function ClassFilter() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<DropdownMenu.CheckboxItem
|
<DropdownMenu.CheckboxItem
|
||||||
|
key={tankClass}
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
@@ -406,6 +408,7 @@ function GunTypeFilter() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Icon
|
<Icon
|
||||||
|
key={gunType}
|
||||||
style={{
|
style={{
|
||||||
margin: gunType === "regular" ? "0 -0.125em" : undefined,
|
margin: gunType === "regular" ? "0 -0.125em" : undefined,
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
@@ -413,7 +416,6 @@ function GunTypeFilter() {
|
|||||||
width: "1.25em",
|
width: "1.25em",
|
||||||
height: "1.25em",
|
height: "1.25em",
|
||||||
}}
|
}}
|
||||||
key={gunType}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
@@ -798,6 +800,7 @@ function ConsumablesFilter() {
|
|||||||
<Flex>
|
<Flex>
|
||||||
{consumables.slice(0, MAX_CONSUMABLES).map((consumable, index) => (
|
{consumables.slice(0, MAX_CONSUMABLES).map((consumable, index) => (
|
||||||
<img
|
<img
|
||||||
|
key={consumable}
|
||||||
style={{
|
style={{
|
||||||
filter: "drop-shadow(0 0 var(--space-1) var(--black-a11))",
|
filter: "drop-shadow(0 0 var(--space-1) var(--black-a11))",
|
||||||
marginLeft: index > 0 ? "-0.5em" : undefined,
|
marginLeft: index > 0 ? "-0.5em" : undefined,
|
||||||
@@ -890,6 +893,7 @@ function AbilitiesFilter() {
|
|||||||
<Flex>
|
<Flex>
|
||||||
{abilities.slice(0, MAX_ABILITIES).map((ability, index) => (
|
{abilities.slice(0, MAX_ABILITIES).map((ability, index) => (
|
||||||
<img
|
<img
|
||||||
|
key={ability}
|
||||||
style={{
|
style={{
|
||||||
filter: "drop-shadow(0 0 var(--space-1) var(--black-a11))",
|
filter: "drop-shadow(0 0 var(--space-1) var(--black-a11))",
|
||||||
marginLeft: index > 0 ? "-0.5em" : undefined,
|
marginLeft: index > 0 ? "-0.5em" : undefined,
|
||||||
|
|||||||
Reference in new issue
Block a user