Skip to content

Commit

Permalink
fix: お知らせの編集画面でも送信中は送信ボタンを無効化するように
Browse files Browse the repository at this point in the history
  • Loading branch information
arata-nvm committed Jul 24, 2024
1 parent 2935d59 commit 889a4bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/committee/news/[news_id]/edit/EditNewsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const EditNewsForm: FC<{
const {
register,
handleSubmit,
formState: { errors },
formState: { errors, isSubmitted, isSubmitSuccessful },
reset,
} = useForm<UpdateNewsSchemaType>({
mode: "onBlur",
Expand Down Expand Up @@ -111,7 +111,8 @@ export const EditNewsForm: FC<{
color="purple"
className={hstack({
gap: 3,
})}>
})}
disabled={isSubmitted || isSubmitSuccessful}>
<span
className={css({
fontSize: "xs",
Expand Down

0 comments on commit 889a4bf

Please sign in to comment.