From 5805484525e21bf324775f9e3102ea3c73dde502 Mon Sep 17 00:00:00 2001 From: Alvalen Date: Sun, 1 Sep 2024 08:24:04 +0700 Subject: [PATCH] feat: revise fixed button --- app/about/page.jsx | 5 +---- app/projects/[slug]/page.jsx | 5 +---- app/projects/archive/page.jsx | 5 +---- app/projects/page.jsx | 15 ++++++--------- components/FixedButton.jsx | 10 ++++++---- 5 files changed, 15 insertions(+), 25 deletions(-) diff --git a/app/about/page.jsx b/app/about/page.jsx index 64c5a08..edd87e7 100644 --- a/app/about/page.jsx +++ b/app/about/page.jsx @@ -26,13 +26,10 @@ export default function Page() { window.scrollTo(0, 0); }, []); - const handleBack = () => { - window.location.href = "/"; - }; return ( <>
- + ); } - const handleBack = () => { - window.history.back(); - }; return (
- + { - window.history.back(); - }; return ( <>
- + { window.scrollTo(0, 0); }, []); - const handleBack = () => { - window.location.href = "/"; - }; return ( <>
- - - + + +
( - + ); export default FixedButton;