infoderm / patients

:face_with_thermometer: Patients meteor app
GNU Affero General Public License v3.0
5 stars 2 forks source link

Improve calendar #29

Open make-github-pseudonymous-again opened 5 years ago

make-github-pseudonymous-again commented 5 years ago

Use one of:

make-github-pseudonymous-again commented 4 years ago

Related to #28.

make-github-pseudonymous-again commented 3 years ago

At first glance react-big-calendar seems easier to use than fullcalendar, reasons:

Cons:

make-github-pseudonymous-again commented 3 years ago

What about creating custom hooks instead? useYear, useMonth, useWeek, useDay. The interface would look like this:

const {
    begin: Datetime(2017,0,1,...), // inclusive
    end: Datetime(2018,0,1,...), // non-inclusive
    prev: () => {year: 2016},
    next: () => {year: 2018},
    ...
} = useYear({year: 2017});

We could also have a useRectangularMonth to replicate the current behaviour (show full weeks in monthly calendar).

make-github-pseudonymous-again commented 3 years ago

A Scheduler is planned in Material-UI.