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