mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-22 20:37:17 +02:00
💄 Update manage link styling
This commit is contained in:
parent
899bb966fa
commit
ea2010a7ad
2 changed files with 7 additions and 7 deletions
|
@ -1,4 +1,5 @@
|
||||||
import { PollStatus } from "@rallly/database";
|
import { PollStatus } from "@rallly/database";
|
||||||
|
import { Button } from "@rallly/ui/button";
|
||||||
import { Icon } from "@rallly/ui/icon";
|
import { Icon } from "@rallly/ui/icon";
|
||||||
import { Tooltip, TooltipContent, TooltipTrigger } from "@rallly/ui/tooltip";
|
import { Tooltip, TooltipContent, TooltipTrigger } from "@rallly/ui/tooltip";
|
||||||
import { createColumnHelper } from "@tanstack/react-table";
|
import { createColumnHelper } from "@tanstack/react-table";
|
||||||
|
@ -130,12 +131,11 @@ export const usePollColumns = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link
|
<Button size="sm" variant="link" asChild>
|
||||||
className="text-link text-sm"
|
<Link href={`/poll/${row.original.id}`}>
|
||||||
href={`/poll/${row.original.id}`}
|
<Trans i18nKey="manage" />
|
||||||
>
|
</Link>
|
||||||
<Trans i18nKey="manage" />
|
</Button>
|
||||||
</Link>
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -24,7 +24,7 @@ const buttonVariants = cva(
|
||||||
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
||||||
ghost:
|
ghost:
|
||||||
"border-transparent bg-transparent hover:bg-gray-200 active:bg-gray-300",
|
"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: {
|
size: {
|
||||||
default: "h-9 px-2.5 gap-x-2.5 text-sm",
|
default: "h-9 px-2.5 gap-x-2.5 text-sm",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue