Skip to content

Commit

Permalink
refactor: Move layout back to storage page
Browse files Browse the repository at this point in the history
This is done so it doesn't apply the storage header to all subpages as well
  • Loading branch information
ZeroWave022 committed Aug 29, 2024
1 parent 9974673 commit 400f698
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 40 deletions.
40 changes: 0 additions & 40 deletions src/app/[locale]/(default)/storage/layout.tsx

This file was deleted.

23 changes: 23 additions & 0 deletions src/app/[locale]/(default)/storage/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ import {
SelectValue,
} from '@/components/ui/Select';

import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from '@/components/ui/Tooltip';
import { ShoppingCart } from 'lucide-react';

export async function generateMetadata({
params: { locale },
}: {
Expand Down Expand Up @@ -84,6 +92,21 @@ export default function StoragePage({

return (
<>
<div className='relative'>
<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>
<TooltipContent>
<p>{t('tooltips.viewShoppingCart')}</p>
</TooltipContent>
</Tooltip>
</TooltipProvider>
</div>
<div className='my-4 flex flex-col justify-center gap-2 lg:flex-row'>
<SearchBar className='lg:max-w-2xl' />
<Select>
Expand Down

0 comments on commit 400f698

Please sign in to comment.