diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-09-04 11:05:29 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-09-04 11:05:29 +0700 |
| commit | 643c1cc2203d05286b94e591f53560eec83e3f14 (patch) | |
| tree | 59e3cc30195af70bf41282737c1754cc30484b56 | |
| parent | 09996e253209cd6d163fa1b9a6667485b80dfa82 (diff) | |
layanan pelanggan & icon gear di ganti icon user
| -rw-r--r-- | src/core/components/elements/Sidebar/Sidebar.jsx | 13 | ||||
| -rw-r--r-- | src/lib/auth/components/Menu.jsx | 3 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/core/components/elements/Sidebar/Sidebar.jsx b/src/core/components/elements/Sidebar/Sidebar.jsx index f0bcb7b7..38fcdef8 100644 --- a/src/core/components/elements/Sidebar/Sidebar.jsx +++ b/src/core/components/elements/Sidebar/Sidebar.jsx @@ -2,7 +2,7 @@ import Link from '../Link/Link' import greeting from '@/core/utils/greeting' import useAuth from '@/core/hooks/useAuth' import { AnimatePresence, motion } from 'framer-motion' -import { ChevronDownIcon, ChevronUpIcon, CogIcon } from '@heroicons/react/24/outline' +import { ChevronDownIcon, ChevronUpIcon, CogIcon, UserIcon } from '@heroicons/react/24/outline' import { Fragment, useEffect, useState } from 'react' import odooApi from '@/core/api/odooApi' @@ -111,8 +111,8 @@ const Sidebar = ({ active, close }) => { onClick={close} href='/my/menu' className='!text-gray_r-11 ml-auto my-auto' - > - <CogIcon className='w-6' /> + > + <UserIcon class='h-6 w-6 text-gray-500' /> </Link> </> )} @@ -120,7 +120,12 @@ const Sidebar = ({ active, close }) => { <SidebarLink className={itemClassName} href='/shop/brands'> Semua Brand </SidebarLink> - <SidebarLink className={itemClassName} href='https://blog.indoteknik.com/' target="_blank" rel="noreferrer noopener"> + <SidebarLink + className={itemClassName} + href='https://blog.indoteknik.com/' + target='_blank' + rel='noreferrer noopener' + > Blog Indoteknik </SidebarLink> <SidebarLink className={itemClassName} href='/video'> diff --git a/src/lib/auth/components/Menu.jsx b/src/lib/auth/components/Menu.jsx index 939a0d5f..f475db1f 100644 --- a/src/lib/auth/components/Menu.jsx +++ b/src/lib/auth/components/Menu.jsx @@ -1,6 +1,7 @@ import Link from '@/core/components/elements/Link/Link' import { useRouter } from 'next/router' import ImageNext from 'next/image' +import whatsappUrl from '@/core/utils/whatsappUrl' const Menu = () => { const router = useRouter() @@ -42,7 +43,7 @@ const Menu = () => { </LinkItem> <div className='mt-4 mb-1 font-medium'>Pusat Bantuan</div> - <LinkItem href='/'> + <LinkItem href={whatsappUrl('', '', '')} rel='noopener noreferrer' target='_blank'> <div className='flex gap-x-3 items-center'> <ImageNext src='/images/icon/icon_layanan_pelanggan.svg' width={18} height={20} /> <p>Layanan Pelanggan</p> |
