Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 87876aa

Browse files
committed
add missing link to create topic button on home page
1 parent 93e097f commit 87876aa

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/pages/index.tsx

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useEffect, useContext, useState } from 'react';
22
import { NextPage } from 'next';
33
import dynamic from 'next/dynamic';
4+
import NextLink from 'next/link';
45
import { Button, Container, Grid, makeStyles } from '@material-ui/core';
56
import CategoryTabs from '@zoonk/components/CategoryTabs';
67
import FilterView from '@zoonk/components/FilterView';
@@ -41,9 +42,11 @@ const Home: NextPage = () => {
4142
<Grid item xs={12} className={classes.column}>
4243
<CategoryTabs active="topics" />
4344
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
44-
<Button variant="contained" color="primary">
45-
{translate('topic_create')}
46-
</Button>
45+
<NextLink href="/topics/add" passHref>
46+
<Button component="a" variant="contained" color="primary">
47+
{translate('topic_create')}
48+
</Button>
49+
</NextLink>
4750
<FilterView view={view} onChange={setView} />
4851
</div>
4952
{view === 'grid' && <TopicGrid />}

0 commit comments

Comments
 (0)