Skip to content

Commit de44743

Browse files
committed
Feat: 체크박스의 label 복구
1 parent 8df0205 commit de44743

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/pages/AccountCancel/index.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,12 @@ const AccountCancel: React.FC = () => {
9696
</InfoItem>
9797
</InfoBox>
9898
<CheckboxWrapper as="div">
99-
<CheckboxInput type="checkbox" checked={isChecked} onChange={handleCheckboxChange} />
100-
<StyledText as="span" $textTheme={{ style: 'body4-light', lineHeight: 1 }} color={theme.colors.gray3}>
101-
안내사항을 모두 확인하였으며, 이에 동의합니다.
102-
</StyledText>
99+
<label style={{ display: 'flex', alignItems: 'center', cursor: 'pointer' }}>
100+
<CheckboxInput type="checkbox" checked={isChecked} onChange={handleCheckboxChange} />
101+
<StyledText as="span" $textTheme={{ style: 'body4-light', lineHeight: 1 }} color={theme.colors.gray3}>
102+
안내사항을 모두 확인하였으며, 이에 동의합니다.
103+
</StyledText>
104+
</label>
103105
</CheckboxWrapper>
104106
</CancelContainer>
105107
<div

src/pages/AccountCancel/styles.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const CancelContainer = styled.div`
88
margin: 0 auto;
99
width: 100%;
1010
flex-grow: 1; /* flexbox에서 공간을 채우도록 설정 */
11-
//padding: 1.25rem; /* 20px */
1211
display: flex;
1312
flex-direction: column;
1413
`;
@@ -42,7 +41,7 @@ export const InfoBox = styled.div`
4241
export const InfoItem = styled.p`
4342
font-size: 0.875rem; /* 14px */
4443
margin-bottom: 0.625rem; /* 10px */
45-
padding: 2px 10px;
44+
padding: 2px 10px;
4645
display: flex;
4746
justify-content: center;
4847
align-items: center;

0 commit comments

Comments
 (0)