bit optimize

dev
Aji Kamaludin 1 year ago
parent 92d92b91da
commit f5519657db
No known key found for this signature in database
GPG Key ID: 19058F67F0083AD3

@ -101,7 +101,9 @@ export default function Index(props) {
<img
onClick={() => handleBanner(banner)}
key={banner.id}
loading='lazy'
src={banner.image_url}
alt={banner.title}
className={`rounded w-${
banners.length === 1 ? 'full' : '[80%]'
} min-w-[340px] h-28 object-cover`}

@ -1,7 +1,8 @@
import React from 'react'
import { HiOutlineCash, HiOutlineBell } from 'react-icons/hi'
import BalanceBanner from './BalanceBanner'
import { router, usePage } from '@inertiajs/react'
import { HiOutlineBell } from 'react-icons/hi'
import BalanceBanner from './BalanceBanner'
export default function UserBanner({ user }) {
const {

@ -2,11 +2,10 @@ import React, { useEffect } from 'react'
import { ToastContainer, toast } from 'react-toastify'
import { router, usePage } from '@inertiajs/react'
import { HiOutlineHome, HiOutlineUserCircle } from 'react-icons/hi'
import { HiOutlineHome } from 'react-icons/hi'
import {
HiArrowPathRoundedSquare,
HiBars3,
HiGift,
HiOutlineGift,
HiOutlineShoppingCart,
} from 'react-icons/hi2'

Loading…
Cancel
Save