Skip to content

Commit

Permalink
fix: added Nav to Footer because DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Jan 24, 2024
1 parent d7dd9eb commit b9accc1
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Slack } from '@/components/assets/icons/Slack';
import { IDILogo } from '@/components/assets/sponsors/IDILogo';
import { KiDLogo } from '@/components/assets/sponsors/KiDLogo';
import { LogoLink } from '@/components/layout/LogoLink';
import { Nav } from '@/components/layout/Nav';
import { Button } from '@/components/ui/Button';

function Footer() {
Expand Down Expand Up @@ -112,25 +113,12 @@ function Footer() {
</div>
<div>
<h4>{t('links')}</h4>
<nav>
<ul className='ml-2 mt-2 space-y-1.5'>
<li>
<Button asChild variant='nav' size='none'>
<Link href='/news'>{t('news')}</Link>
</Button>
</li>
<li>
<Button asChild variant='nav' size='none'>
<Link href='/events'>{t('events')}</Link>
</Button>
</li>
<li>
<Button asChild variant='nav' size='none'>
<Link href='/about'>{t('about')}</Link>
</Button>
</li>
</ul>
</nav>
<Nav
className='ml-2 mt-2 space-y-1.5'
news={t('news')}
events={t('events')}
about={t('about')}
/>
</div>
<div>
<h4>{t('utilities')}</h4>
Expand Down

0 comments on commit b9accc1

Please sign in to comment.