Skip to content

Commit

Permalink
feat(dash/components): 💫 Add working link to ActionsCard
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Dec 8, 2024
1 parent c77f92a commit 7dc1516
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/dashboard/src/components/core/card/ActionsCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { DefaultMantineColor, SimpleGrid, Text, UnstyledButton } from '@mantine/core';
import { Box, DefaultMantineColor, SimpleGrid, Text, UnstyledButton } from '@mantine/core';

import classes from '@/styles/ActionsCard.module.css';
import Link from 'next/link';
import { BlankCard } from './BlankCard';

export function ActionsCard({
Expand All @@ -18,14 +19,14 @@ export function ActionsCard({
}[];
}) {
const items = links.map((item) => (
<UnstyledButton key={item.title} className={classes.item}>
<UnstyledButton key={item.title} className={classes.item} component={Link} href={item.url}>
<item.icon color={`var(--mantine-color-${item.color}-6`} size={32} />
<Text size="xs" mt={7}>
{item.title}
</Text>
</UnstyledButton>
));
const Wrapper = withCard ? BlankCard : 'div';
const Wrapper = withCard ? BlankCard : Box;

return (
<Wrapper>
Expand Down

0 comments on commit 7dc1516

Please sign in to comment.