summaryrefslogtreecommitdiff
path: root/src/core/components/elements/Appbar/Appbar.jsx
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-02-23 08:20:44 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-02-23 08:20:44 +0700
commita553af3576985e6d14cf59177a6cca9fa108c0bb (patch)
tree763f73dafe6cc69c913eacafdc26e972849092b1 /src/core/components/elements/Appbar/Appbar.jsx
parente5aea4632cb84c9d5e04024b67d149178f794ba6 (diff)
parent404afb8b94b5d8d88f6dfd619cde0b5a122fbc42 (diff)
prettier
Diffstat (limited to 'src/core/components/elements/Appbar/Appbar.jsx')
-rw-r--r--src/core/components/elements/Appbar/Appbar.jsx21
1 files changed, 17 insertions, 4 deletions
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>