Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add single prop #3

Merged
merged 1 commit into from
Jul 19, 2021
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions src/fields/DayOfMonth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export default function DayOfMonth() {
return (
<Box display='flex' p={1} m={1}>
<CustomSelect
single
options={onEveryOptions}
label={'On/Every'}
value={dayOfMonthAtEvery}
Expand Down Expand Up @@ -163,6 +164,7 @@ export default function DayOfMonth() {
<>
<Typography classes={{ root: classes.between }}>between</Typography>
<CustomSelect
single
options={possibleStartDays}
label={''}
value={startMonth}
Expand All @@ -177,6 +179,7 @@ export default function DayOfMonth() {
/>
<Typography classes={{ root: classes.between }}>and</Typography>
<CustomSelect
single
options={possibleEndDays}
label={''}
value={endMonth}
Expand Down
3 changes: 3 additions & 0 deletions src/fields/Hour.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export default function Hour() {
return (
<Box display='flex' p={1} m={1}>
<CustomSelect
single
options={isAdmin ? atEveryOptions : atOptionsNonAdmin}
label={'At/Every'}
value={hourAtEvery}
Expand Down Expand Up @@ -139,6 +140,7 @@ export default function Hour() {
<>
<Typography classes={{ root: classes.between }}>between</Typography>
<CustomSelect
single
options={possibleStartTimes}
label={''}
value={startHour}
Expand All @@ -154,6 +156,7 @@ export default function Hour() {
/>
<Typography classes={{ root: classes.between }}>and</Typography>
<CustomSelect
single
options={possibleEndTimes}
label={''}
value={endHour}
Expand Down
3 changes: 3 additions & 0 deletions src/fields/Minute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export default function Minute() {
return (
<Box display='flex' p={1} m={1}>
<CustomSelect
single
options={isAdmin ? atEveryOptions : atOptionsNonAdmin}
label={'At/Every'}
disableClearable
Expand Down Expand Up @@ -146,6 +147,7 @@ export default function Minute() {
<>
<Typography classes={{ root: classes.between }}>between</Typography>
<CustomSelect
single
options={possibleStartTimes}
label={''}
value={startMinute}
Expand All @@ -161,6 +163,7 @@ export default function Minute() {
/>
<Typography classes={{ root: classes.between }}>and</Typography>
<CustomSelect
single
options={possibleEndTimes}
label={''}
value={endMinute}
Expand Down
1 change: 1 addition & 0 deletions src/fields/Period.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default function Period() {
<Box display='flex' p={1} m={1}>
<Typography classes={{ root: classes.every }}>Every</Typography>
<CustomSelect
single
disableClearable
options={isAdmin ? periodOptions : periodOptionsNonAdmin}
label={'Period'}
Expand Down