💄 Update manage link styling

This commit is contained in:
Luke Vella 2024-05-18 15:12:27 +08:00
parent 899bb966fa
commit ea2010a7ad
2 changed files with 7 additions and 7 deletions

View file

@ -1,4 +1,5 @@
import { PollStatus } from "@rallly/database";
import { Button } from "@rallly/ui/button";
import { Icon } from "@rallly/ui/icon";
import { Tooltip, TooltipContent, TooltipTrigger } from "@rallly/ui/tooltip";
import { createColumnHelper } from "@tanstack/react-table";
@ -130,12 +131,11 @@ export const usePollColumns = () => {
}
return (
<Link
className="text-link text-sm"
href={`/poll/${row.original.id}`}
>
<Trans i18nKey="manage" />
</Link>
<Button size="sm" variant="link" asChild>
<Link href={`/poll/${row.original.id}`}>
<Trans i18nKey="manage" />
</Link>
</Button>
);
},
}),

View file

@ -24,7 +24,7 @@ const buttonVariants = cva(
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
ghost:
"border-transparent bg-transparent hover:bg-gray-200 active:bg-gray-300",
link: "underline-offset-4 border-transparent hover:text-primary-700 text-primary",
link: "underline-offset-4 border-transparent hover:underline text-primary",
},
size: {
default: "h-9 px-2.5 gap-x-2.5 text-sm",