From 055e4d779151cd0cbad380043e4be38cca8b1c7a Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Mon, 9 Sep 2024 16:41:39 +0700 Subject: update mobile view --- src-migrate/modules/register/components/FormBisnis.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src-migrate') diff --git a/src-migrate/modules/register/components/FormBisnis.tsx b/src-migrate/modules/register/components/FormBisnis.tsx index fb9f6484..1004d944 100644 --- a/src-migrate/modules/register/components/FormBisnis.tsx +++ b/src-migrate/modules/register/components/FormBisnis.tsx @@ -16,7 +16,7 @@ import { } from '@heroicons/react/24/outline'; import BottomPopup from '@/core/components/elements/Popup/BottomPopup'; import Image from 'next/image' - +import useDevice from '@/core/hooks/useDevice' interface FormProps { type: string; required: boolean; @@ -45,6 +45,7 @@ const form: React.FC = ({ type, required, isPKP }) => { const [selectedCategory, setSelectedCategory] = useState(''); const [isChekBox, setIsChekBox] = useState(false); const [isExample, setIsExample] = useState(false); + const { isDesktop, isMobile } = useDevice() // Inside your component const [formattedNpwp, setFormattedNpwp] = useState(""); // State for formatted NPWP const [unformattedNpwp, setUnformattedNpwp] = useState(""); // State for unformatted NPWP @@ -426,8 +427,10 @@ const form: React.FC = ({ type, required, isPKP }) => { Nomor SPPKP { !required && (opsional) } {
setIsExample(!isExample)} className="rounded text-white p-2 flex flex-row bg-red-500 hover:cursor-pointer hover:bg-red-400" > - + + {isDesktop &&

Lihat Contoh

+ }
} -- cgit v1.2.3