web client v0.8
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user