Skip to content

Commit

Permalink
feat: Make shopping cart button clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroWave022 committed Sep 7, 2024
1 parent a77ce28 commit 5666ae1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/app/[locale]/(default)/storage/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import {
import { ShoppingCart } from 'lucide-react';

import { AddToCartButton } from '@/components/storage/AddToCartButton';
import { Link } from '@/lib/navigation';

export async function generateMetadata({
params: { locale },
Expand Down Expand Up @@ -98,11 +99,13 @@ export default function StoragePage({
<h1 className='my-4 md:text-center'>{t('title')}</h1>
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<Button className='absolute right-0 bottom-0 md:right-5'>
<ShoppingCart />
</Button>
</TooltipTrigger>
<Link href='/storage/shopping-cart'>
<TooltipTrigger asChild>
<Button className='absolute right-0 bottom-0 md:right-5'>
<ShoppingCart />
</Button>
</TooltipTrigger>
</Link>
<TooltipContent>
<p>{t('tooltips.viewShoppingCart')}</p>
</TooltipContent>
Expand Down
1 change: 0 additions & 1 deletion src/components/storage/ShoppingCartTableSkeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { SkeletonCard } from '@/components/storage/SkeletonCard';
import { Skeleton } from '@/components/ui/Skeleton';

export default function ShoppingCartTableSkeleton() {
Expand Down

0 comments on commit 5666ae1

Please sign in to comment.