Skip to content

Commit ef1a7ce

Browse files
authored
Merge pull request #127 from mash-up-kr/release/v0.0.1
Real Release (v0.1.0)
2 parents 8cffab6 + 4faf744 commit ef1a7ce

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

src/components/ApplicationForm/ApplicationFormItem/ApplicationFormItem.component.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ const ApplicationFormItem = ({ index, handleRemoveItem }: ApplicationFormItemPro
106106
type="number"
107107
{...register(`questions.${index}.maxContentLength`, {
108108
required: true,
109-
pattern: /[^0-9]/,
110-
min: 0,
109+
min: 1,
111110
})}
112111
/>
113112
)}

src/components/ApplicationForm/ApplicationFormPreview/ApplicationFormPreview.component.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ interface FormValues {
1818
questions: Question[];
1919
}
2020

21+
const PRIVACY_POLICY_URL =
22+
'https://snow-chestnut-45b.notion.site/Mash-Up-Recruit-62a5f6dabcb34e61ba8f26c4fb3a21f0';
23+
2124
export const ApplicationFormPreviewModal = ({
2225
questions,
2326
toggleModalOpened,
@@ -76,8 +79,16 @@ export const ApplicationFormPreviewModal = ({
7679
<Styled.QuestionInput {...props} $size={InputSize.md} />
7780
);
7881
})}
79-
{/* TODO:(@mango906): 개인정보 수집 링크 생기면 링크 걸어주기 */}
80-
<Styled.PrivacyCheckBox label="개인정보 수집 및 이용에 동의합니다." />
82+
<Styled.PrivacyCheckBox
83+
label={
84+
<Styled.PrivacyCheckBoxLabel>
85+
<a href={PRIVACY_POLICY_URL} target="_blank" rel="noreferrer">
86+
개인정보 수집 및 이용
87+
</a>
88+
에 동의합니다.
89+
</Styled.PrivacyCheckBoxLabel>
90+
}
91+
/>
8192
<Styled.ButtonContainer>
8293
<Styled.Col>
8394
<Button

src/components/ApplicationForm/ApplicationFormPreview/ApplicationFormPreview.styled.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,11 @@ export const Col = styled.div`
8989
margin-left: 1.6rem;
9090
}
9191
`;
92+
93+
export const PrivacyCheckBoxLabel = styled.span`
94+
${({ theme }) => css`
95+
a {
96+
border-bottom: 1px solid ${theme.colors.gray70};
97+
}
98+
`}
99+
`;

src/components/common/Checkbox/Checkbox.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export interface CheckboxProps extends React.LabelHTMLAttributes<HTMLLabelElemen
66
handleToggle?: ChangeEventHandler<HTMLInputElement>;
77
disabled?: boolean;
88
isChecked?: boolean;
9-
label?: string;
9+
label?: React.ReactNode;
1010
}
1111

1212
const Checkbox = ({

0 commit comments

Comments
 (0)