File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
web/src/app/(content)/(info) Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
import type { Metadata } from 'next' ;
2
2
import Image from 'next/image' ;
3
+ import Link from 'next/link' ;
3
4
import { notFound } from 'next/navigation' ;
4
5
5
6
import { PostType , getPostData } from '@web/src/lib/posts' ;
6
- import BackButton from '@web/src/modules/shared/components/client/BackButton' ;
7
7
import { CustomMarkdown } from '@web/src/modules/shared/components/CustomMarkdown' ;
8
8
9
9
type BlogPageProps = {
@@ -45,9 +45,12 @@ const BlogPost = ({ params }: BlogPageProps) => {
45
45
return (
46
46
< >
47
47
< article className = 'max-w-screen-md mx-auto mb-36' >
48
- < BackButton className = 'text-zinc-500 hover:text-zinc-400 text-sm' >
49
- { '< Back to Help' }
50
- </ BackButton >
48
+ < Link
49
+ href = '/help'
50
+ className = 'text-zinc-500 hover:text-zinc-400 text-sm'
51
+ >
52
+ { '< Back to Blog' }
53
+ </ Link >
51
54
< h1 className = 'text-4xl font-bold mt-16 mb-8' > { post . title } </ h1 >
52
55
53
56
{ /* Author */ }
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import Link from 'next/link';
4
4
import { notFound } from 'next/navigation' ;
5
5
6
6
import { PostType , getPostData } from '@web/src/lib/posts' ;
7
- import BackButton from '@web/src/modules/shared/components/client/BackButton' ;
8
7
import { CustomMarkdown } from '@web/src/modules/shared/components/CustomMarkdown' ;
9
8
10
9
type HelpPageProps = {
@@ -46,9 +45,12 @@ const HelpPost = ({ params }: HelpPageProps) => {
46
45
return (
47
46
< >
48
47
< article className = 'max-w-screen-md mx-auto mb-36' >
49
- < BackButton className = 'text-zinc-500 hover:text-zinc-400 text-sm' >
48
+ < Link
49
+ href = '/blog'
50
+ className = 'text-zinc-500 hover:text-zinc-400 text-sm'
51
+ >
50
52
{ '< Back to Help' }
51
- </ BackButton >
53
+ </ Link >
52
54
< h1 className = 'text-4xl font-bold mt-16 mb-8' > { post . title } </ h1 >
53
55
54
56
{ /* Author */ }
You can’t perform that action at this time.
0 commit comments