Skip to content

Commit

Permalink
rename: submit->onSubmit으로 form태그에서 사용되는 핸들러이름과 일치시킴
Browse files Browse the repository at this point in the history
  • Loading branch information
pakxe committed Nov 19, 2024
1 parent 230d8ab commit f132106
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const SetMemberEventNameStep = ({moveToNextStep, setEventToken}: SetEventNamePag
const {postEvent, isPostEventPending} = useRequestPostMemberEvent();
const {trackCompleteCreateMemberEvent} = useAmplitude();

const submit = async (event: React.FormEvent<HTMLFormElement>) => {
const onSubmit = async (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();

await postEvent(eventName, {
Expand All @@ -45,7 +45,7 @@ const SetMemberEventNameStep = ({moveToNextStep, setEventToken}: SetEventNamePag
<Top.Line text="정산을 시작하려는" />
<Top.Line text="행사의 이름은 무엇인가요?" emphasize={['행사의 이름']} />
</Top>
<form onSubmit={submit}>
<form onSubmit={onSubmit}>
<Input
labelText="행사 이름"
errorText={errorMessage ?? ''}
Expand Down

0 comments on commit f132106

Please sign in to comment.