Skip to content

Commit

Permalink
chore: fix title bug on auth page
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Jan 16, 2025
1 parent 2290070 commit cd98a50
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/app/[locale]/auth/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default async function AuthLayout({
}: AuthLayoutProps) {
const { locale } = await params;
setRequestLocale(locale);
const t = await getTranslations('layout');
const { auth, ui } = await getMessages();

return (
Expand All @@ -40,7 +41,13 @@ export default async function AuthLayout({
<PendingProvider>
<PendingBar />
<CardHeader className='flex items-center justify-between py-2'>
<LogoLink logoClassName='h-7 w-7' titleClassName='text-lg' />
<LogoLink
logoClassName='h-7 w-7'
titleClassName='text-lg'
t={{
hackerspaceHome: t('hackerspaceHome'),
}}
/>
</CardHeader>
<div className='h-96'>
<NextIntlClientProvider
Expand Down
7 changes: 6 additions & 1 deletion src/components/layout/LogoLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ function LogoLink({
variant='none'
size='none'
>
<Link href='/' aria-label={t.hackerspaceHome} onClick={onClick}>
<Link
href='/'
aria-label={t.hackerspaceHome}
title={t.hackerspaceHome}
onClick={onClick}
>
<HackerspaceLogo className={cx('~w-7/11 ~h-7/11', logoClassName)} />
<span
className={cx(
Expand Down

0 comments on commit cd98a50

Please sign in to comment.