-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
|
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.
์ปค๋ฐ ์ปจ๋ฒค์ ์ง์ผ์ฃผ์ธ์!
? '10๊ต์' | ||
: period === 'ELEVENTH' | ||
? '11๊ต์' | ||
: '' |
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.
์ผํญ์ฐ์ฐ์๊ฐ ์๋๋ผ periodArr๋ฅผ ํตํด์ ๊ด๋ฆฌํ๋ ๊ฑด ์ด๋จ๊น์?
@@ -1,4 +1,5 @@ | |||
export interface ApplicantInitialState { | |||
attendanceId?: any |
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.
attendanceId๋ฅผ any๋ก ์ค์ ํ ์ด์ ๊ฐ ์๋์?
@@ -0,0 +1,17 @@ | |||
export const Attend_LATE = ({ color }: { color?: string }) => { |
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.
svg ์ปดํฌ๋ํธ๋ค์ color์ ํ์ ์ boolean์ผ๋ก ๋ณ๊ฒฝํ๊ฑฐ๋, color์ string๊ฐ์ผ๋ก ์์์ ๋ณด๋ฅผ ๊ฐ์ ธ์ค๋๋ฐฉ์์ผ๋ก ๋ณ๊ฒฝํ๋ ๊ฒ์ด ์ข์๋ณด์ฌ์
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.
์ปค๋ฐ ์ปจ๋ฒค์ ์ง์ผ์ฃผ์ธ์!
@@ -0,0 +1,26 @@ | |||
export const Attend_ABSENT = ({ color }: { color?: string }) => { |
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.
Attend_ABSENT๋ฅผ ๋น๋กฏํ 3๊ฐ svg์ ์ด๋ฆ์ ์ค๋ค์ดํฌ์ผ์ด์ค๋ก ์์ฑํ ์ด์ ๊ฐ ์์๊น์?
create, | ||
download, | ||
}) => { | ||
const yoilArr = ['์ผ', '์', 'ํ', '์', '๋ชฉ', '๊ธ', 'ํ '] |
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.
ํ๊ธ๋ก ์์ผ์ yoil๋ก ํ๋ ๊ฒ๋ณด๋ค weeks๊ฐ์ ๋ค์ด๋ฐ์ ์ด๋ค๊ฐ์?
๊ทธ๋ฆฌ๊ณ ๋ณํ์ง ์๋ ๋ณ์๋ AttendanceForm ๋ฐ์ ์ ์ธํ๋ ๊ฒ์ด ๋ ์ข์ ๊ฒ ๊ฐ์ต๋๋ค.
period === 'FIRST' | ||
? '1๊ต์' | ||
: period === 'SECOND' | ||
? '2๊ต์' | ||
: period === 'THIRD' | ||
? '3๊ต์' | ||
: period === 'FOURTH' | ||
? '4๊ต์' | ||
: period === 'FIFTH' | ||
? '5๊ต์' | ||
: period === 'SIXTH' | ||
? '6๊ต์' | ||
: period === 'SEVENTH' | ||
? '7๊ต์' | ||
: period === 'EIGHTH' | ||
? '8๊ต์' | ||
: period === 'NINTH' | ||
? '9๊ต์' | ||
: period === 'TENTH' | ||
? '10๊ต์' | ||
: period === 'ELEVENTH' | ||
? '11๊ต์' | ||
: '' |
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.
์ด๋ฐ ์ค๋ณต๋ ์ผํญ ์ฐ์ฐ์๋ ์ข์ง ์์ ๊ฒ ๊ฐ์์!
๋ฐ๋ก ๊ฐ์ฒด๋ฅผ ๋ง๋ค์ด์ key๋ค์ FIRST, SECOND ๋ฑ์ผ๋ก ํ๊ณ ํด๋นํ๋ value๋ค์ ๊ต์๋ก ์ง์ ํด๋์
obj[period] ์์ผ๋ก ์ค์ฌ๋ณด๋ ๊ฑด ์ด๋จ๊น์?
@@ -1,4 +1,5 @@ | |||
export interface ApplicantInitialState { | |||
attendanceId?: any |
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.
any๋ก ์ง์ ํ์ ์ด์ ๊ฐ ์๋์?
interface AttendanceFormProps { | ||
onClose: () => void | ||
isShow: string | ||
setIsPick: React.Dispatch<React.SetStateAction<string>> | ||
setClicked: React.Dispatch<React.SetStateAction<boolean>> | ||
date: Date | ||
setDate: React.Dispatch<React.SetStateAction<Date>> | ||
setCurrentDate: React.Dispatch<React.SetStateAction<string>> | ||
clicked: boolean | ||
selectedPeriods: PeriodEnumType[] | ||
isPick: string | ||
onClickPeriod: (period: PeriodEnumType) => void | ||
periodArr: { text: string; period: PeriodEnumType }[] | ||
create: () => void | ||
download: () => void | ||
} |
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.
is๊ฐ ๋ค์ด๋ฐ์ boolean ํํ์ ์ ํฉํ๋ค ์๊ฐํ๋๋ฐ ๋ฐ๊ฟ๋ณด๋ ๊ฑธ ์ถ์ฒ๋๋ฆฌ๊ณ isPick์ ํ์
์ด
'calendar์ period๋ก ์ ํํ ๋๋์ด์ ธ ์๋ ๊ฒ ๊ฐ์๋ฐ string ๋ง๊ณ ์ง์ ์ง์ ํ๋ ๊ฒ ์ข์ ๊ฒ ๊ฐ์ต๋๋ค.
onClick={() => { | ||
setIsShow('์กฐํํ๊ธฐ') | ||
}} | ||
style={{ cursor: 'pointer' }} |
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.
NavWrapper์ cursor: pointer
๋ฅผ ์ฃผ์ง ์๊ณ ์ง์ ์ธ๋ผ์ธ์ผ๋ก ์คํ์ผ ์ฃผ์ ์ด์ ๊ฐ ์๋์?
onClick={() => { | ||
setIsShow('์์ฑํ๊ธฐ') | ||
}} | ||
style={{ cursor: 'pointer' }} |
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.
์ ์ฝ๋ฉํธ์ ๊ฐ์ต๋๋ค.
)} | ||
|
||
<UserList data={attendData} value={watch('value').trim()} /> | ||
<ChoiceUser onSubmit={() => attendanceDownload()} /> |
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.
๋ฐ๋ก ๋ฐ๋ ์ธ์๊ฐ ์๋ค๋ฉด onSubmit={attendanceDownload}
๋ก ์ค์ฌ๋ ๋ฌธ์ ๊ฐ ์๊ธธ ๊ฒ ๊ฐ์ง ์์๋ฐ ์ด๋ค๊ฐ์?
<Input placeholder='๊ฒ์' register={register('value')} /> | ||
</S.InputBox> | ||
|
||
{attendData && attendData.users.length > 0 && ( |
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.
0๋ณด๋ค ํฌ๋ค๋ผ๋ ์กฐ๊ฑด์ attendData.users.length๋ ๋๊ฐ์ ์๋ฏธ์ผ ๊ฒ ๊ฐ์๋ฐ ๋ฐ๊พธ์ค ์ํฅ์ด ์๋์?
> svg { | ||
position: absolute; | ||
left: 20px; | ||
bottom: 16px; | ||
} | ||
input { | ||
padding: 0.9rem 3rem; | ||
} |
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.
svg์๋ง >๋ฅผ ๋ถ์ธ ์ด์ ๊ฐ ์๋์?
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.
router.push๋ฅผ ์ฌ์ฉํ์ง ์๊ณ href๋ฅผ ์ด์ฉํ์ ์ด์ ๊ฐ ์๋์?
๐ก ๊ฐ์
์ถ์ ๊ธฐ๋ฅ์ ์ถ๊ฐํ์ต๋๋ค
๐ ์์ ๋ด์ฉ
AttendPage๋ฅผ ๋ง๋ค์์ต๋๋ค
๐ธ ๊ธฐํ
ํ ์คํธ ๋ง์ด ํด์ฃผ์๋ฉด ์ข์ ๊ฒ ๊ฐ์์!
