refactor: update ZipCodePopup to simplify state management by removing unnecessary parameter in setZipCodePopup function
This commit is contained in:
parent
041e43f78b
commit
3e77864d2e
@ -2,7 +2,6 @@ import type { Metadata } from 'next'
|
||||
import ReactQueryProviders from '@/providers/ReactQueryProvider'
|
||||
import PopupController from '@/components/ui/PopupController'
|
||||
import '@/styles/style.scss'
|
||||
import { headers } from 'next/headers'
|
||||
import type { ReactNode } from 'react'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
|
||||
@ -26,7 +26,7 @@ export default function ZipCodePopup() {
|
||||
</div>
|
||||
<div className="modal-name">住所検索</div>
|
||||
</div>
|
||||
<button className="modal-close" onClick={() => popupController.setZipCodePopup({ zipCodePopup: false })}></button>
|
||||
<button className="modal-close" onClick={() => popupController.setZipCodePopup(false)}></button>
|
||||
</div>
|
||||
</div>
|
||||
<div className="modal-body">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user