home screen changes (info button, appstore and google play buttons)
This commit is contained in:
@@ -27,17 +27,17 @@ export default function InputWorkingHoursSingle(props) {
|
||||
props.changeValue(event.target.value);
|
||||
};
|
||||
const handleCheckbox = () => {
|
||||
if (!props.off) {
|
||||
if (!props.nieczynne) {
|
||||
props.changeValue("");
|
||||
} else {
|
||||
props.changeValue("13:00 - 15:00");
|
||||
props.changeValue("12:30 - 13:30");
|
||||
}
|
||||
};
|
||||
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<div className="workingHours-day">
|
||||
<h5>Lunch menu</h5>
|
||||
<h5>Lunch hours</h5>
|
||||
<TextField
|
||||
value={props.hours}
|
||||
variant="outlined"
|
||||
@@ -48,9 +48,13 @@ export default function InputWorkingHoursSingle(props) {
|
||||
<FormControlLabel
|
||||
className={classes.checkbox}
|
||||
control={
|
||||
<Checkbox onClick={handleCheckbox} checked={props.off} name="brak" />
|
||||
<Checkbox
|
||||
onClick={handleCheckbox}
|
||||
checked={props.nieczynne}
|
||||
name="nieczynne"
|
||||
/>
|
||||
}
|
||||
label="Wyłącz"
|
||||
label="Brak"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user