From f99e0aba70efad0deb907d8e27f09fc9f527c8a4 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Fri, 17 Feb 2023 17:07:50 +0700
Subject: Refactor

---
 src/core/components/elements/Appbar/Appbar.jsx | 33 ++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 src/core/components/elements/Appbar/Appbar.jsx

(limited to 'src/core/components/elements/Appbar/Appbar.jsx')

diff --git a/src/core/components/elements/Appbar/Appbar.jsx b/src/core/components/elements/Appbar/Appbar.jsx
new file mode 100644
index 00000000..0fe087d3
--- /dev/null
+++ b/src/core/components/elements/Appbar/Appbar.jsx
@@ -0,0 +1,33 @@
+import { useRouter } from "next/router"
+import Link from "../Link/Link"
+import { HomeIcon, Bars3Icon, ShoppingCartIcon, ChevronLeftIcon } from "@heroicons/react/24/outline"
+
+const AppBar = ({ title }) => {
+  const router = useRouter()
+
+  return (
+    <nav className="sticky top-0 z-50 bg-white shadow flex justify-between">
+      <div className="flex items-center">
+        <button type="button" className="p-4" onClick={() => router.back()}>
+          <ChevronLeftIcon className="w-6 stroke-2" />
+        </button>
+        <div className="font-semibold text-h-md">
+          { title }
+        </div>
+      </div>
+      <div className="flex items-center px-2">
+        <Link href="/shop/cart" className="py-4 px-2">
+          <ShoppingCartIcon className="w-6 text-gray_r-12" />
+        </Link>
+        <Link href="/shop/cart" className="py-4 px-2">
+          <HomeIcon className="w-6 text-gray_r-12" />
+        </Link>
+        <Link href="/shop/cart" className="py-4 px-2">
+          <Bars3Icon className="w-6 text-gray_r-12" />
+        </Link>
+      </div>
+    </nav>
+  )
+}
+
+export default AppBar
\ No newline at end of file
-- 
cgit v1.2.3


From d22df6bd30b8ed4bcfa938dcbbedc5fc376c2304 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 20 Feb 2023 10:49:35 +0700
Subject: cart refactor

---
 src/core/components/elements/Appbar/Appbar.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/core/components/elements/Appbar/Appbar.jsx')

diff --git a/src/core/components/elements/Appbar/Appbar.jsx b/src/core/components/elements/Appbar/Appbar.jsx
index 0fe087d3..2a19ec6c 100644
--- a/src/core/components/elements/Appbar/Appbar.jsx
+++ b/src/core/components/elements/Appbar/Appbar.jsx
@@ -6,7 +6,7 @@ const AppBar = ({ title }) => {
   const router = useRouter()
 
   return (
-    <nav className="sticky top-0 z-50 bg-white shadow flex justify-between">
+    <nav className="sticky top-0 z-50 bg-white border-b border-gray_r-6 flex justify-between">
       <div className="flex items-center">
         <button type="button" className="p-4" onClick={() => router.back()}>
           <ChevronLeftIcon className="w-6 stroke-2" />
-- 
cgit v1.2.3


From 525166e62b793b351d1a6be2421c0a33b22f7b7b Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 20 Feb 2023 11:35:25 +0700
Subject: cart refactor

---
 src/core/components/elements/Appbar/Appbar.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/core/components/elements/Appbar/Appbar.jsx')

diff --git a/src/core/components/elements/Appbar/Appbar.jsx b/src/core/components/elements/Appbar/Appbar.jsx
index 2a19ec6c..8d060c44 100644
--- a/src/core/components/elements/Appbar/Appbar.jsx
+++ b/src/core/components/elements/Appbar/Appbar.jsx
@@ -19,7 +19,7 @@ const AppBar = ({ title }) => {
         <Link href="/shop/cart" className="py-4 px-2">
           <ShoppingCartIcon className="w-6 text-gray_r-12" />
         </Link>
-        <Link href="/shop/cart" className="py-4 px-2">
+        <Link href="/" className="py-4 px-2">
           <HomeIcon className="w-6 text-gray_r-12" />
         </Link>
         <Link href="/shop/cart" className="py-4 px-2">
-- 
cgit v1.2.3


From fdfb47c3a825258b871ac5921605642e5e05fdd8 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 21 Feb 2023 12:04:20 +0700
Subject: fix

---
 src/core/components/elements/Appbar/Appbar.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/core/components/elements/Appbar/Appbar.jsx')

diff --git a/src/core/components/elements/Appbar/Appbar.jsx b/src/core/components/elements/Appbar/Appbar.jsx
index 8d060c44..8fa5a2a7 100644
--- a/src/core/components/elements/Appbar/Appbar.jsx
+++ b/src/core/components/elements/Appbar/Appbar.jsx
@@ -22,7 +22,7 @@ const AppBar = ({ title }) => {
         <Link href="/" className="py-4 px-2">
           <HomeIcon className="w-6 text-gray_r-12" />
         </Link>
-        <Link href="/shop/cart" className="py-4 px-2">
+        <Link href="/my/menu" className="py-4 px-2">
           <Bars3Icon className="w-6 text-gray_r-12" />
         </Link>
       </div>
-- 
cgit v1.2.3


From de7361718def0f6bb32294bb074841ba2c0a3ce6 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 21 Feb 2023 16:25:35 +0700
Subject: fix

---
 src/core/components/elements/Appbar/Appbar.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/core/components/elements/Appbar/Appbar.jsx')

diff --git a/src/core/components/elements/Appbar/Appbar.jsx b/src/core/components/elements/Appbar/Appbar.jsx
index 8fa5a2a7..36df9edb 100644
--- a/src/core/components/elements/Appbar/Appbar.jsx
+++ b/src/core/components/elements/Appbar/Appbar.jsx
@@ -11,7 +11,7 @@ const AppBar = ({ title }) => {
         <button type="button" className="p-4" onClick={() => router.back()}>
           <ChevronLeftIcon className="w-6 stroke-2" />
         </button>
-        <div className="font-semibold text-h-md">
+        <div className="font-medium text-h-sm line-clamp-1">
           { title }
         </div>
       </div>
-- 
cgit v1.2.3


From f66b12fd1d0b83af0d7230d7b1565fbe00afbe3c Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 22 Feb 2023 11:03:34 +0700
Subject: prettier

---
 src/core/components/elements/Appbar/Appbar.jsx | 34 ++++++++++++--------------
 1 file changed, 16 insertions(+), 18 deletions(-)

(limited to 'src/core/components/elements/Appbar/Appbar.jsx')

diff --git a/src/core/components/elements/Appbar/Appbar.jsx b/src/core/components/elements/Appbar/Appbar.jsx
index 36df9edb..4300287f 100644
--- a/src/core/components/elements/Appbar/Appbar.jsx
+++ b/src/core/components/elements/Appbar/Appbar.jsx
@@ -1,33 +1,31 @@
-import { useRouter } from "next/router"
-import Link from "../Link/Link"
-import { HomeIcon, Bars3Icon, ShoppingCartIcon, ChevronLeftIcon } from "@heroicons/react/24/outline"
+import { useRouter } from 'next/router'
+import Link from '../Link/Link'
+import { HomeIcon, Bars3Icon, ShoppingCartIcon, ChevronLeftIcon } from '@heroicons/react/24/outline'
 
 const AppBar = ({ title }) => {
   const router = useRouter()
 
   return (
-    <nav className="sticky top-0 z-50 bg-white border-b border-gray_r-6 flex justify-between">
-      <div className="flex items-center">
-        <button type="button" className="p-4" onClick={() => router.back()}>
-          <ChevronLeftIcon className="w-6 stroke-2" />
+    <nav className='sticky top-0 z-50 bg-white border-b border-gray_r-6 flex justify-between'>
+      <div className='flex items-center'>
+        <button type='button' className='p-4' onClick={() => router.back()}>
+          <ChevronLeftIcon className='w-6 stroke-2' />
         </button>
-        <div className="font-medium text-h-sm line-clamp-1">
-          { title }
-        </div>
+        <div className='font-medium text-h-sm line-clamp-1'>{title}</div>
       </div>
-      <div className="flex items-center px-2">
-        <Link href="/shop/cart" className="py-4 px-2">
-          <ShoppingCartIcon className="w-6 text-gray_r-12" />
+      <div className='flex items-center px-2'>
+        <Link href='/shop/cart' className='py-4 px-2'>
+          <ShoppingCartIcon className='w-6 text-gray_r-12' />
         </Link>
-        <Link href="/" className="py-4 px-2">
-          <HomeIcon className="w-6 text-gray_r-12" />
+        <Link href='/' className='py-4 px-2'>
+          <HomeIcon className='w-6 text-gray_r-12' />
         </Link>
-        <Link href="/my/menu" className="py-4 px-2">
-          <Bars3Icon className="w-6 text-gray_r-12" />
+        <Link href='/my/menu' className='py-4 px-2'>
+          <Bars3Icon className='w-6 text-gray_r-12' />
         </Link>
       </div>
     </nav>
   )
 }
 
-export default AppBar
\ No newline at end of file
+export default AppBar
-- 
cgit v1.2.3


From ac3fdf7be9982e65d8f83a20bc487f8dd62e3bfc Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 22 Feb 2023 23:36:47 +0700
Subject: fix

---
 src/core/components/elements/Appbar/Appbar.jsx | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

(limited to 'src/core/components/elements/Appbar/Appbar.jsx')

diff --git a/src/core/components/elements/Appbar/Appbar.jsx b/src/core/components/elements/Appbar/Appbar.jsx
index 4300287f..098d0a33 100644
--- a/src/core/components/elements/Appbar/Appbar.jsx
+++ b/src/core/components/elements/Appbar/Appbar.jsx
@@ -8,19 +8,32 @@ const AppBar = ({ title }) => {
   return (
     <nav className='sticky top-0 z-50 bg-white border-b border-gray_r-6 flex justify-between'>
       <div className='flex items-center'>
-        <button type='button' className='p-4' onClick={() => router.back()}>
+        <button
+          type='button'
+          className='p-4'
+          onClick={() => router.back()}
+        >
           <ChevronLeftIcon className='w-6 stroke-2' />
         </button>
         <div className='font-medium text-h-sm line-clamp-1'>{title}</div>
       </div>
       <div className='flex items-center px-2'>
-        <Link href='/shop/cart' className='py-4 px-2'>
+        <Link
+          href='/shop/cart'
+          className='py-4 px-2'
+        >
           <ShoppingCartIcon className='w-6 text-gray_r-12' />
         </Link>
-        <Link href='/' className='py-4 px-2'>
+        <Link
+          href='/'
+          className='py-4 px-2'
+        >
           <HomeIcon className='w-6 text-gray_r-12' />
         </Link>
-        <Link href='/my/menu' className='py-4 px-2'>
+        <Link
+          href='/my/menu'
+          className='py-4 px-2'
+        >
           <Bars3Icon className='w-6 text-gray_r-12' />
         </Link>
       </div>
-- 
cgit v1.2.3

