Refine link and pixel edit controls

This commit is contained in:
Mike Cao committed 2026-03-09 23:26:00 -07:00
1 parent 9941181697
commit 7b84eb22f8
3 files changed
+45 -16

No files matched your search

+10 -2
View File
@@ -1,3 +1,4 @@
import { Icon } from '@umami/react-zen';
import { LinkButton } from '@/components/common/LinkButton';
import { useNavigation } from '@/components/hooks';
import { useMessages } from '@/components/hooks';
@@ -8,8 +9,15 @@ export function PixelEditButton({ pixelId }: { pixelId: string }) {
const { renderUrl } = useNavigation();
return (
<LinkButton href={renderUrl(`/pixels/${pixelId}/edit`, false)} variant="quiet" aria-label={t(labels.edit)}>
<Edit />
<LinkButton
href={renderUrl(`/pixels/${pixelId}/edit`, false)}
title={t(labels.edit)}
aria-label={t(labels.edit)}
variant="quiet"
>
<Icon>
<Edit />
</Icon>
</LinkButton>
);
}