Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Month.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface PeriodProps {
readonly onChange: (period: Period) => Promise<void>
}

const PeriodWrapper = styled('div')`
const PeriodWrapper = styled('label')`
display: grid;
grid-template-rows: 4rem 1rem;
grid-template-columns: 1rem 4rem 1fr;
Expand Down Expand Up @@ -163,7 +163,7 @@ function handleClick({
}

const DayPeriod = (props: PeriodProps) => (
<PeriodWrapper>
<PeriodWrapper for={props.id}>
<Checkbox id={props.id} checked={props.checked} onClick={handleClick(props)} />
<MonthDay for={props.id}>{format(props.starts, 'D')}</MonthDay>
<WeekDay for={props.id}>{format(props.starts, 'ddd')}</WeekDay>
Expand Down