Skip to content

Commit 987faff

Browse files
committed
improved navigation
1 parent fb605e6 commit 987faff

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/app/components/Header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ export default function DrawerAppBar(): React.ReactElement {
438438
<Button
439439
sx={{ fontFamily: fontFamily.secondary }}
440440
href={SIGN_IN_TARGET}
441+
component={Link}
441442
>
442443
Login
443444
</Button>

src/app/screens/Feed/components/FeedNavigationControls.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { Button, Grid, Typography } from '@mui/material';
44
import { ChevronLeft } from '@mui/icons-material';
55
import { useTranslations } from 'next-intl';
6-
import { useRouter } from '../../../../i18n/navigation';
6+
import { Link, useRouter } from '../../../../i18n/navigation';
77

88
interface Props {
99
feedDataType: string;
@@ -43,12 +43,18 @@ export default function FeedNavigationControls({
4343
},
4444
}}
4545
>
46-
<Button variant='text' href='/feeds' className='inline'>
46+
<Button
47+
variant='text'
48+
component={Link}
49+
href='/feeds'
50+
className='inline'
51+
>
4752
{t('feeds')}
4853
</Button>
4954
/
5055
<Button
5156
variant='text'
57+
component={Link}
5258
href={`/feeds?${feedDataType}=true`}
5359
className='inline'
5460
>

0 commit comments

Comments
 (0)