mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01:00
feat: clear all provisions and consumables
This commit is contained in:
1 parent
c0fdf10eba
commit
fdc0f34e08
2 files changed
+21
-4
No files matched your search
@@ -1267,11 +1267,12 @@
|
|||||||
"upgrade": "Upgrade"
|
"upgrade": "Upgrade"
|
||||||
},
|
},
|
||||||
"provisions": {
|
"provisions": {
|
||||||
"clear": "Clear",
|
"clear": "Clear this tank",
|
||||||
"clear_all": "Clear all"
|
"clear_all": "Clear all tanks"
|
||||||
},
|
},
|
||||||
"consumables": {
|
"consumables": {
|
||||||
"clear": "Clear"
|
"clear": "Clear this tank",
|
||||||
|
"clear_all": "Clear all tanks"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -553,7 +553,23 @@ export function CompareTable({ stats }: CompareTableProps) {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Flex justify="end" mt="4">
|
<Flex justify="end" mt="4" gap="4">
|
||||||
|
<Button
|
||||||
|
variant="ghost"
|
||||||
|
onClick={() => {
|
||||||
|
CompareEphemeral.mutate((draft) => {
|
||||||
|
draft.members.map((member) => {
|
||||||
|
member.consumables = [];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{
|
||||||
|
strings.website.tools.compare.table.consumables
|
||||||
|
.clear_all
|
||||||
|
}
|
||||||
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
Reference in new issue
Block a user