Skip to content

Commit

Permalink
feat: add return button in /recents
Browse files Browse the repository at this point in the history
  • Loading branch information
awpala authored and tran-christian committed Aug 9, 2022
1 parent 3de6008 commit 52058e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pages/recents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import Grid from '@mui/material/Grid'
import ReviewCard from '@components/ReviewCard'
import Box from '@mui/material/Box'
import CircularProgress from '@mui/material/CircularProgress'
import Button from '@mui/material/Button'
import Link from '@src/Link'

const Recents: NextPage = () => {
const [loading, setLoading] = useState<boolean>()
Expand All @@ -29,6 +31,11 @@ const Recents: NextPage = () => {

return (
<Container>
<Box maxWidth='sm'>
<Button variant='contained' component={Link} noLinkStyle href='/'>
Return to the home page
</Button>
</Box>
{loading ? (
<Box sx={{ display: 'flex', m: 10 }}>
<CircularProgress />
Expand Down

0 comments on commit 52058e4

Please sign in to comment.