change home button to back button
This commit is contained in:
@@ -55,10 +55,10 @@ export default function Post() {
|
|||||||
<div className="my-2">
|
<div className="my-2">
|
||||||
<a
|
<a
|
||||||
href="#"
|
href="#"
|
||||||
onClick={() => navigate("/")}
|
onClick={() => history.back()}
|
||||||
className="text-sm opacity-50 hover:underline"
|
className="text-sm opacity-50 hover:underline"
|
||||||
>
|
>
|
||||||
<- Home
|
<- Back
|
||||||
</a>
|
</a>
|
||||||
<h1 className="text-2xl font-bold">{post.title}</h1>
|
<h1 className="text-2xl font-bold">{post.title}</h1>
|
||||||
<p className="text-sm opacity-50">{post.description}</p>
|
<p className="text-sm opacity-50">{post.description}</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user