Skip to content

Commit 583884e

Browse files
committed
fixing links
1 parent 5d07321 commit 583884e

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

src/app/[locale]/about/components/AboutPage.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Container, Typography, Button } from '@mui/material';
22
import OpenInNewIcon from '@mui/icons-material/OpenInNew';
33
import { type ReactElement } from 'react';
44
import { getTranslations } from 'next-intl/server';
5+
import Link from 'next/link';
56

67
export default async function AboutPage(): Promise<ReactElement> {
78
const t = await getTranslations('about');
@@ -72,15 +73,11 @@ export default async function AboutPage(): Promise<ReactElement> {
7273
<li>{t('benefits.mirrored')}</li>
7374
<li>{t('benefits.boundingBoxes')}</li>
7475
<li>
75-
<Button
76-
variant='text'
77-
className='line-start inline'
78-
href='/contribute'
79-
rel='noreferrer'
80-
target='_blank'
81-
>
82-
{t('benefits.addFeeds')}
83-
</Button>
76+
<Link href='/contribute' rel='noreferrer' target='_blank'>
77+
<Button variant='text' className='line-start inline'>
78+
{t('benefits.addFeeds')}
79+
</Button>
80+
</Link>
8481
</li>
8582
<li>{t('benefits.openSource')}</li>
8683
</ul>

src/app/[locale]/components/HomePage.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import OpenInNewIcon from '@mui/icons-material/OpenInNew';
1010
import SearchBox from './SearchBox';
1111
import { getTranslations } from 'next-intl/server';
1212
import '../../styles/TextShimmer.css';
13+
import Link from 'next/link';
1314

1415
interface ActionBoxProps {
1516
IconComponent: React.ElementType;
@@ -35,9 +36,11 @@ const ActionBox = ({
3536
}}
3637
>
3738
<IconComponent sx={{ width: '100%', height: iconHeight }} />
38-
<Button variant='contained' href={buttonHref} sx={{ m: 2, px: 2 }}>
39-
{buttonText}
40-
</Button>
39+
<Link href={buttonHref}>
40+
<Button variant='contained' sx={{ m: 2, px: 2 }}>
41+
{buttonText}
42+
</Button>
43+
</Link>
4144
</Box>
4245
);
4346

src/app/screens/FAQ.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Container from '@mui/material/Container';
55
import { Button, Typography } from '@mui/material';
66
import { ColoredContainer } from '../styles/PageLayout.style';
77
import OpenInNewIcon from '@mui/icons-material/OpenInNew';
8+
import Link from 'next/link';
89

910
export default function FAQ(): React.ReactElement {
1011
return (
@@ -54,6 +55,7 @@ export default function FAQ(): React.ReactElement {
5455
variant='text'
5556
className='line-start inline'
5657
href={'/contribute'}
58+
component={Link}
5759
>
5860
add a feed
5961
</Button>
@@ -72,6 +74,7 @@ export default function FAQ(): React.ReactElement {
7274
variant='text'
7375
className='line-start inline'
7476
href={'/sign-up'}
77+
component={Link}
7578
>
7679
create an account.
7780
</Button>

0 commit comments

Comments
 (0)