mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 00:58:32 +02:00
Switch to BiomeJS (#306)
This commit is contained in:
@@ -12,7 +12,10 @@ export function DismissibleBanner({
|
||||
id,
|
||||
actions,
|
||||
...props
|
||||
}: BannerProps & { id: string; actions?: { label: string; onClick: () => void; color?: Color }[] }) {
|
||||
}: BannerProps & {
|
||||
id: string;
|
||||
actions?: { label: string; onClick: () => void; color?: Color }[];
|
||||
}) {
|
||||
const { set: setDismissed, value: dismissed } = useKeyValue<boolean>({
|
||||
namespace: 'global',
|
||||
key: ['dismiss-banner', id],
|
||||
@@ -28,9 +31,9 @@ export function DismissibleBanner({
|
||||
>
|
||||
{children}
|
||||
<HStack space={1.5}>
|
||||
{actions?.map((a, i) => (
|
||||
{actions?.map((a) => (
|
||||
<Button
|
||||
key={a.label + i}
|
||||
key={a.label}
|
||||
variant="border"
|
||||
color={a.color ?? props.color}
|
||||
size="xs"
|
||||
|
||||
Reference in New Issue
Block a user