-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/#156
- Loading branch information
Showing
11 changed files
with
383 additions
and
140 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { useFormContext } from 'react-hook-form'; | ||
|
||
import { AuctionInputs } from '@/app/create/types/InputTypes'; | ||
import CommonButton from '@/components/CommonButton'; | ||
|
||
import * as S from '../Basicauction.css'; | ||
|
||
interface AuctionConfirmModalProps { | ||
onSubmit: (data: AuctionInputs) => void; | ||
onCancel: () => void; | ||
} | ||
|
||
function AuctionConfirmModal({ onSubmit, onCancel }: AuctionConfirmModalProps) { | ||
const { getValues } = useFormContext<AuctionInputs>(); | ||
const values = getValues(); | ||
|
||
return ( | ||
<div className={S.confirmModal}> | ||
<div className={S.confirmDescription}> | ||
<span>정말 판매를 등록하시겠습니까?</span> | ||
<span>한 번 등록하면 수정할 수 없습니다.</span> | ||
</div> | ||
<div className={S.buttonWrapper}> | ||
<button className={S.submitButton} type="submit" onClick={() => onSubmit(values)}> | ||
등록하기 | ||
</button> | ||
<CommonButton content="취소" type="button" size="sm" onClick={onCancel} /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default AuctionConfirmModal; |
Oops, something went wrong.