Closed punchdrunkard closed 1 year ago
https://user-images.githubusercontent.com/74234333/221419138-4eeb9ad4-279f-4d20-afb9-59c3f401ab26.mov
pages/index.tsx
import { useDisclosure } from '@hooks' import dynamic from 'next/dynamic'
const CheckboxModal = dynamic( () => import('../components/templates/CheckboxModal'), { ssr: false, }, )
export default function Home() { const [showModal, setShowModal, handleToggle] = useDisclosure()
return ( <> <button className="h-[50px] w-[100px] rounded-[20px] bg-green-light text-[24px] font-bold text-gray-900" onClick={handleToggle}
클릭 <CheckboxModal showModal={showModal} setShowModal={setShowModal} modalContent={'정말 탈퇴하시나요?'} submitMessage={'탈퇴하기'} checkBoxDescription={'계정 삭제에 동의합니다.'} handleOnSubmit={() => { console.log('삭제!') setShowModal(false) }} /> </> ) }
# 타 직군 전달 사항 ## 백엔드 전달 사항 ## 디자이너 전달 사항 close #269
The latest updates on your projects. Learn more about Vercel for Git ↗︎
요약
사진 (구현 캡처)
https://user-images.githubusercontent.com/74234333/221419138-4eeb9ad4-279f-4d20-afb9-59c3f401ab26.mov
작업 내용
기타 (논의하고 싶은 부분)
pages/index.tsx
에 다음 코드를 붙여넣어서 테스트 해보세요.const CheckboxModal = dynamic( () => import('../components/templates/CheckboxModal'), { ssr: false, }, )
export default function Home() { const [showModal, setShowModal, handleToggle] = useDisclosure()
return ( <> <button className="h-[50px] w-[100px] rounded-[20px] bg-green-light text-[24px] font-bold text-gray-900" onClick={handleToggle}