web client v0.8

This commit is contained in:
2020-10-03 18:54:34 +02:00
parent 62702521ee
commit 21ea3f821e
7 changed files with 382 additions and 41 deletions

View File

@@ -24,6 +24,7 @@ import { prepareTags } from "../../Services.js";
import axios from "axios";
import PasswordConfirmation from "../Dialogs/PasswordConfirmation";
import { backend } from "../../config";
import InputLunchMenuHours from "../Input/InputLunchMenuHours";
const useStyles = makeStyles((theme) => ({
textInput: {
@@ -69,6 +70,7 @@ export default function EditRestaurantInfo(props) {
links: props.restaurant.links,
tags: decodeTags(props.restaurant.tags),
workingHours: props.restaurant.workingHours,
lunchHours: props.lunchHours,
charleft: calculateCharLeft(props.restaurant.description),
nameError: false,
cityError: false,
@@ -167,6 +169,7 @@ export default function EditRestaurantInfo(props) {
placesId: props.restaurant.placesId,
imgUrl: props.restaurant.imgUrl,
workingHours: state.workingHours,
lunchHours: state.lunchHours,
description: state.description,
tags: formattedTags,
links: state.links,
@@ -383,6 +386,15 @@ export default function EditRestaurantInfo(props) {
),
}}
/>
<div className="editRestaurant-sectiontitle">
<h4>Lunch menu</h4>
<Divider />
<InputLunchMenuHours
off={!state.lunchHours}
hours={state.lunchHours}
changeValue={(value) => setState({ ...state, lunchHours: value })}
/>
</div>
<div className="editRestaurant-sectiontitle">
<h4>Zaawansowane</h4>
<Divider />