cornellh4i / ithaca-recovery

Ithaca Community Recovery Event and Meeting Setup Automation Tool
https://ithaca-recovery.vercel.app
8 stars 3 forks source link

Date/Time Picker + Box Text #36

Closed tunile943 closed 1 week ago

tunile943 commented 1 month ago

Branches: atoms/date-time-picker + atoms/box-text

Task at Hand

  1. View the Design System for the Components.
  2. Create a folder /atoms under /components. Inside /atoms, you should create folders /DatePicker, /TimePicker, /BoxText with a file index.tsx inside containing the code for that atom.
  3. Implement a date picker, time picker, and box component adhering to the Design System above.

Picture of date and time picker components: Image

The following are the props for date picker and time picker:

interface DatePickerProps { label: string | JSX.Element;
value?: string; error?: string;

}

interface TimePickerProps { label: string | JSX.Element; value?: string; error?: string; disablePast?: boolean;

}

Picture of box components: Image

The following are the props for box text:

interface BoxProps { boxType: 'Meeting Block' | 'Room Block'; title: string; bgColor: string; time?: string; // For Meeting Block tags?: string[]; // For badges like "Hybrid", "AA"

}

  1. Confirm that your code and pull request follow the Pull Request Checklist. You might need to do two separate PRs for these two brances.

Acceptance Criteria

Notes