Skip to content

Commit

Permalink
Add 2-month Header view
Browse files Browse the repository at this point in the history
  • Loading branch information
audrey-yang committed Dec 7, 2024
1 parent 91796fd commit c622408
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/renderer/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
import { DateCalendar } from "@mui/x-date-pickers/DateCalendar";
import Typography from "@mui/material/Typography";
import dayjs from "dayjs";

const Header = ({
numUnstartedTasks,
Expand All @@ -22,6 +23,11 @@ const Header = ({
</div>
<LocalizationProvider dateAdapter={AdapterDayjs}>
<DateCalendar sx={{ margin: 0 }} />
<DateCalendar
sx={{ margin: 0 }}
readOnly
referenceDate={dayjs().month(dayjs().month() + 1)}
/>
</LocalizationProvider>
</div>
);
Expand Down

0 comments on commit c622408

Please sign in to comment.