mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
fix: use roles
This commit is contained in:
1 parent
9df5efa422
commit
56a09536cd
4 files changed
+51
-52
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import type { Consumable } from '@blitzkit/core';
|
||||
import { Flex, type FlexProps } from '@radix-ui/themes';
|
||||
import { ConsumableButton } from './ModuleButtons/ConsumableButton';
|
||||
import type { Consumable } from "@blitzkit/core";
|
||||
import { Flex, type FlexProps } from "@radix-ui/themes";
|
||||
import { ConsumableButton } from "./ModuleButtons/ConsumableButton";
|
||||
|
||||
type ConsumablesManagerProps = FlexProps & {
|
||||
consumables: Consumable[];
|
||||
@@ -27,6 +27,8 @@ export function ConsumablesManager({
|
||||
return (
|
||||
<Flex wrap="wrap" gap="2" {...props}>
|
||||
{consumables.map((consumable) => {
|
||||
if (consumable.game_mode_exclusive) return null;
|
||||
|
||||
const isSelected = selected.some((id) => id === consumable.id);
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user