feat: add password reset functionality to MemberInformationPopup with navigation support
This commit is contained in:
parent
2ba6583ffb
commit
70c45bc182
@ -1,11 +1,18 @@
|
||||
'use client'
|
||||
|
||||
import { useRouter } from 'next/navigation'
|
||||
import { usePopupController } from '@/store/popupController'
|
||||
import { useSessionStore } from '@/store/session'
|
||||
|
||||
export default function MemberInformationPopup() {
|
||||
const popupController = usePopupController()
|
||||
const { session } = useSessionStore()
|
||||
const router = useRouter()
|
||||
|
||||
const handlePwReset = () => {
|
||||
router.push('/pw-reset')
|
||||
popupController.setMemberInfomationPopup(false)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="modal-popup">
|
||||
@ -49,7 +56,7 @@ export default function MemberInformationPopup() {
|
||||
<input type="text" className="input-frame" defaultValue={session.builderNo ?? ''} disabled />
|
||||
</div>
|
||||
</div>
|
||||
<button className="btn-frame n-blue icon">
|
||||
<button className="btn-frame n-blue icon" onClick={handlePwReset}>
|
||||
パスワードリセット<i className="btn-arr"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user