-
Notifications
You must be signed in to change notification settings - Fork 247
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
working on calendar view #499
Conversation
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.
On the right track, some few suggestions
// width: 100%; | ||
// float: right; |
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.
Please remove this commented out code
}: { | ||
type: CalendarType; | ||
events: { appointmentDate: string; service: Array<any>; [key: string]: 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.
This can be extracted to DailyCalendarViewProps
to make it more readable, also avoid using Array<any>
provide the correct type for it.
<div className={styles.container}> | ||
<DailyHeader type={type} currentDate={currentDate} setCurrentDate={setCurrentDate} events={events} /> | ||
<div className={styles.wrapper}> | ||
{type === 'daily' ? ( |
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.
This component is DailyCalendarView
therefore no need to have this check here
<> | ||
<div className={styles.cellComponent}> | ||
<div className={styles[type === 'daily' ? 'daily-cell' : '']}> | ||
{type === 'daily' ? <small>{dateTime.minute(0).format('h a')}</small> : null} |
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.
Same as above
min-height: 40px; | ||
width: 100%; | ||
&:nth-child(-n + 24) { | ||
// border-top: 1px solid colors.$gray-20; |
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.
Remove commented code
const Format = { | ||
monthly: 'month', | ||
weekly: 'week', | ||
daily: 'day', | ||
} as const; |
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.
we could use type here
Requirements
Summary
Daily,weekly,and monthly Calendar view design



Screenshots
None.
Related Issue
None.
Other
None.