home screen changes (info button, appstore and google play buttons)

This commit is contained in:
2020-10-21 19:54:51 +02:00
parent e488827335
commit f5f758dbdc
11 changed files with 208 additions and 68 deletions

View File

@@ -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>
);