Skip to content

feat: implement basic calendar component#22

Open
yuyu0227 wants to merge 2 commits into
developfrom
feat/calendar-component
Open

feat: implement basic calendar component#22
yuyu0227 wants to merge 2 commits into
developfrom
feat/calendar-component

Conversation

@yuyu0227

@yuyu0227 yuyu0227 commented May 21, 2021

Copy link
Copy Markdown
Contributor

Description

What new features or functions does this PR provide? What bugs does it fix?
-Add Calendar component, Day component, TimeBlock component
-Function: click grey blocks to mark availability; click blue blocks to cancel availability
-Function: define props and hooks for each component
-Function: click left arrow/right arrow to see previous week/next week

Testing

How did you test the code in the pull request?

  • test in browser

Checklist

  • I provided a description of the contents of this pull request.
  • I've linked this pull request to an issue.
  • I've assigned myself as the Assignee and labelled the PR correctly.

@wilsonplau wilsonplau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at https://date-fns.org/

import { Header, Footer, Calendar } from "components";


const Layout: React.FC<{}> = ({ children }) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a wrapper component for the header and footer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants