Skip to content

Commit

Permalink
fix(components): ISSN input 문자도 입력받도록 수정 (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
hynseok authored Jul 2, 2024
1 parent 68072eb commit d39c395
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/pages/AdminProfForm/AdminProfForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ function AdminProfForm({ professorId }: Props) {
login(accessToken);
router.push("/");
router.refresh();

} catch (err) {
console.error(err);
}
Expand Down
14 changes: 12 additions & 2 deletions src/components/pages/achievement/AchievementForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,19 @@ function AchievementForm({ form, handleSubmit, isEdit, isAdmin }: Props) {
<RowGroup>
<BasicRow field="ISSN">
<Group justify="space-between">
<InputBase w={100} component={IMaskInput} mask="0000" {...getInputProps("ISSN1")} />
<InputBase
w={100}
component={IMaskInput}
mask={/^[0-9a-zA-Z]{1,4}$/}
{...getInputProps("ISSN1")}
/>
{" - "}
<InputBase w={100} component={IMaskInput} mask="0000" {...getInputProps("ISSN2")} />
<InputBase
w={100}
component={IMaskInput}
mask={/^[0-9a-zA-Z]{1,4}$/}
{...getInputProps("ISSN2")}
/>
</Group>
</BasicRow>
</RowGroup>
Expand Down

0 comments on commit d39c395

Please sign in to comment.