diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-09-25 01:53:07 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-09-25 01:53:07 +0000 |
| commit | ad952b397b1cebcf85b66877da8e949e7e7a891f (patch) | |
| tree | c174d9dabd75a97544884f47b513f5b4b58443a0 /src/lib/home/components/BannerSection.jsx | |
| parent | 1e834e45f9a11911036496151b71f99de480862e (diff) | |
| parent | a66b690ad0445452816f3ac8f8e98dba2e53ca31 (diff) | |
Merged in perapihan-tag (pull request #331)
Perapihan tag
Approved-by: trisusilo
Diffstat (limited to 'src/lib/home/components/BannerSection.jsx')
| -rw-r--r-- | src/lib/home/components/BannerSection.jsx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/home/components/BannerSection.jsx b/src/lib/home/components/BannerSection.jsx index 2010503d..f83c36fc 100644 --- a/src/lib/home/components/BannerSection.jsx +++ b/src/lib/home/components/BannerSection.jsx @@ -1,12 +1,12 @@ -import Link from '@/core/components/elements/Link/Link' -import Image from 'next/image' +import Link from '@/core/components/elements/Link/Link'; +import Image from 'next/image'; -const { useQuery } = require('react-query') -const { default: bannerSectionApi } = require('../api/bannerSectionApi') +const { useQuery } = require('react-query'); +const { default: bannerSectionApi } = require('../api/bannerSectionApi'); const BannerSection = () => { - const fetchBannerSection = async () => await bannerSectionApi() - const bannerSection = useQuery('bannerSection', fetchBannerSection) + const fetchBannerSection = async () => await bannerSectionApi(); + const bannerSection = useQuery('bannerSection', fetchBannerSection); return ( bannerSection.data && @@ -17,7 +17,7 @@ const BannerSection = () => { <Image width={1024} height={512} - quality={100} + quality={85} src={banner.image} alt={banner.name} className='h-auto w-full rounded' @@ -26,7 +26,7 @@ const BannerSection = () => { ))} </div> ) - ) -} + ); +}; -export default BannerSection +export default BannerSection; |
