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 <img
onClick={() => handleBanner(banner)} onClick={() => handleBanner(banner)}
key={banner.id} key={banner.id}
loading='lazy'
src={banner.image_url} src={banner.image_url}
alt={banner.title}
className={`rounded w-${ className={`rounded w-${
banners.length === 1 ? 'full' : '[80%]' banners.length === 1 ? 'full' : '[80%]'
} min-w-[340px] h-28 object-cover`} } min-w-[340px] h-28 object-cover`}

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

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

Loading…
Cancel
Save