-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FE] 캘린더 메모 기능 추가 #981
The head ref may contain hidden characters: "feat/fe/\uCE98\uB9B0\uB354-\uBA54\uBAA8-\uAE30\uB2A5-\uCD94\uAC00"
[FE] 캘린더 메모 기능 추가 #981
Changes from 1 commit
9051e0e
e8d39c5
2d333a5
275733f
06097e2
7a58270
0735d26
9223caa
f714b6b
584a7a8
15c54ba
7efd92e
4c7c560
d06940c
3f7cf02
8cb20d6
afc05d7
65e6fbd
53e9223
a475c3b
6ebe60f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ import { getIsMobile } from '~/utils/getIsMobile'; | |
import Switch from '~/components/common/Switch/Switch'; | ||
import theme from '~/styles/theme'; | ||
import Svg from '~/components/common/Svg/Svg'; | ||
import { SCHEDULE_DESCRIPTION_MAX_LENGTH } from '~/constants/calendar'; | ||
|
||
interface ScheduleAddModalProps { | ||
calendarSize?: CalendarSize; | ||
|
@@ -172,25 +173,31 @@ const ScheduleAddModal = (props: ScheduleAddModalProps) => { | |
</Text> | ||
</Button> | ||
</S.ConvenientContainer> | ||
<S.DescriptionDiv $isDescription={isDescription}> | ||
<S.DescriptionTextarea | ||
rows={1} | ||
placeholder="메모를 작성해주세요.(최대 100자)" | ||
value={schedule.description} | ||
ref={descriptionInputRef} | ||
onChange={handleDescriptionInput} | ||
required | ||
/> | ||
<S.WarnDiv> | ||
{!isDescriptionMaxLength ? ( | ||
<Text size="xs">({schedule.description.length} / 100자)</Text> | ||
) : ( | ||
<Text size="xs" css={S.errorText}> | ||
최대 100자까지 입력가능합니다. | ||
</Text> | ||
)} | ||
</S.WarnDiv> | ||
</S.DescriptionDiv> | ||
{isDescription && ( | ||
<> | ||
<S.DescriptionTextarea | ||
rows={1} | ||
placeholder={`메모를 작성해주세요.(최대 ${SCHEDULE_DESCRIPTION_MAX_LENGTH}자)`} | ||
value={schedule.description} | ||
ref={descriptionInputRef} | ||
onChange={handleDescriptionInput} | ||
/> | ||
<S.WarnDiv> | ||
{!isDescriptionMaxLength ? ( | ||
<Text size="xs"> | ||
({schedule.description.length} / $ | ||
{SCHEDULE_DESCRIPTION_MAX_LENGTH}자) | ||
</Text> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
) : ( | ||
<Text size="xs" css={S.errorText}> | ||
최대 ${SCHEDULE_DESCRIPTION_MAX_LENGTH}자까지 | ||
입력가능합니다. | ||
</Text> | ||
)} | ||
</S.WarnDiv> | ||
</> | ||
)} | ||
|
||
<S.InnerContainer> | ||
<S.TeamNameContainer title={displayName}> | ||
<TeamBadge teamPlaceColor={teamPlaceColor} size="md" /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이왕 상수를 적용해 줬다면 이 컴포넌트에도 상수를 적용해 줄 수 있을 것 같아보인다
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 그거 고민하긴 했는데 문자열 너무 더러워보여서 뺐었음ㅋㅋ 해둘게 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다른 건 모르겠고 이 컴포넌트에 진심이라는 건 잘 알겠어 ㅋㅋ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ㅋㅋㅋㅋㅋㅋ아니 사실은 이거 내가 혼자만들고 있는 디자인시스템에서 긁어온거거든..? 공용 컴포넌트 하나씩 만들고 있었어서.. 근데 디자인시스템이니까 사용방법을 써야할 거 아냐 그래서 완전 열심히 써둠ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ 긁어오면서 설명 지울필요를 못느껴서 그대로 뒀서🤪