Skip to content

Commit

Permalink
design: '약속 후보 날짜 선택'과 '약속 시간 범위 선택' 사이에 간격을 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoonkyoungme committed Oct 10, 2024
1 parent c0b535b commit 4a7062b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { css } from '@emotion/react';

export const s_container = css`
display: flex;
flex-direction: column;
gap: 2.4rem;
`;

export const s_dateCandidateSelector = css`
display: flex;
flex-direction: column;
gap: 1.2rem;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import type { UseTimeRangeDropdownReturn } from '@hooks/useTimeRangeDropdown/use

import { FIELD_DESCRIPTIONS } from '@constants/inputFields';

import { s_container, s_dateCandidateSelector } from './MeetingDateTime.styles';

interface MeetingDateTimeProps {
meetingDateInput: ReturnType<typeof useDateSelect>;
meetingTimeInput: UseTimeRangeDropdownReturn;
Expand Down Expand Up @@ -69,8 +71,8 @@ export default function MeetingDateTime({
};

return (
<>
<Field>
<div css={s_container}>
<div css={s_dateCandidateSelector}>
<Field>
<Field.Label id="날짜선택" labelText="약속 후보 날짜 선택" />
<Field.Description description={FIELD_DESCRIPTIONS.date} />
Expand Down Expand Up @@ -100,14 +102,15 @@ export default function MeetingDateTime({
<Calendar.Body renderDate={renderDate} />
</Calendar>
</Field>
</Field>

<Checkbox
onChange={handleToggleIsChecked}
id="meetingType"
isChecked={isChecked}
labelText="날짜만 선택할래요"
/>
<Checkbox
onChange={handleToggleIsChecked}
id="meetingType"
isChecked={isChecked}
labelText="날짜만 선택할래요"
/>
</div>

{!isChecked && (
<Field>
<Field.Label id="약속시간범위선택" labelText="약속 시간 범위 선택" />
Expand All @@ -123,6 +126,6 @@ export default function MeetingDateTime({
<BottomFixedButton onClick={onMeetingCreateButtonClick} disabled={isCreateMeetingFormInvalid}>
약속 생성하기
</BottomFixedButton>
</>
</div>
);
}

0 comments on commit 4a7062b

Please sign in to comment.