summaryrefslogtreecommitdiff
path: root/src/components/Header.js
diff options
context:
space:
mode:
authorRafi Zadanly <rafizadanly@gmail.com>2022-12-21 17:11:01 +0700
committerRafi Zadanly <rafizadanly@gmail.com>2022-12-21 17:11:01 +0700
commit4e5257d73f18fd76c66cc61f1f09034d12bc02b8 (patch)
tree97178e8e88de99fe89ad6bd437da3a96acaf6f8a /src/components/Header.js
parentcbc5837e578ca107f129f8b922efde3fe685c102 (diff)
menu profil saya
Diffstat (limited to 'src/components/Header.js')
-rw-r--r--src/components/Header.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Header.js b/src/components/Header.js
index ca59701e..a294c140 100644
--- a/src/components/Header.js
+++ b/src/components/Header.js
@@ -27,7 +27,7 @@ export default function Header({ title }) {
const [auth, setAuth] = useState();
useEffect(() => {
- if (!auth) setAuth(getAuth())
+ if (!auth) setAuth(getAuth());
}, [auth]);
useEffect(() => {
@@ -87,7 +87,7 @@ export default function Header({ title }) {
</div>
<div className="flex flex-col">
{auth && (
- <Link className="flex w-full font-normal text-gray_r-11 border-b border-gray_r-6 p-4 py-3" href="/shop/brands" onClick={closeMenu}>
+ <Link className="flex w-full font-normal text-gray_r-11 border-b border-gray_r-6 p-4 py-3" href="/my/profile" onClick={closeMenu}>
<span>Profil Saya</span>
<div className="ml-auto">
<ChevronRightIcon className="text-gray_r-12 w-5" />