Skip to content

Commit

Permalink
Merge pull request #135 from DevKor-github/fix/input
Browse files Browse the repository at this point in the history
fix: 숫자 키패트 뜨게
  • Loading branch information
halionaz authored Sep 5, 2024
2 parents 352ef8b + 2cac1b3 commit 6a87d41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/InputBox/InputBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ type StatusType = 'default' | 'focus' | 'filled';

interface InputBoxProps {
type?: 'new' | 'edit';
inputType?: 'number' | 'text';
value: string;
setValue: (value: string) => void;
placeholder?: string;
Expand All @@ -21,6 +22,7 @@ interface InputBoxProps {
}
export function InputBox({
type = 'new',
inputType = 'text',
value,
setValue,
placeholder,
Expand All @@ -36,6 +38,7 @@ export function InputBox({
return (
<Wrapper>
<Input
inputMode={inputType === 'number' ? 'numeric' : undefined}
$status={status}
$error={error}
$changeable={changeable}
Expand Down
1 change: 1 addition & 0 deletions components/Signup/SetPhoneNumber/SetPhoneNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export function SetPhoneNumber() {
<FormWrapper>
<InputBox
placeholder="전화번호"
inputType="number"
value={phoneNumber}
setValue={setValue}
error={error === 'phoneNumber'}
Expand Down

0 comments on commit 6a87d41

Please sign in to comment.