fix: add headers correctly
This commit is contained in:
15
components/BackButton/index.tsx
Normal file
15
components/BackButton/index.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
"use client"
|
||||
|
||||
import { useRouter } from "next/navigation"
|
||||
|
||||
import Button from "../TempDesignSystem/Button"
|
||||
|
||||
export default function BackButton() {
|
||||
const router = useRouter()
|
||||
|
||||
function goBack() {
|
||||
router.back()
|
||||
}
|
||||
|
||||
return <Button onClick={goBack}>Go Back!</Button>
|
||||
}
|
||||
Reference in New Issue
Block a user