diff --git a/src/components/BookingTable/index.js b/src/components/BookingTable/index.js index bf62a75..c7409d4 100644 --- a/src/components/BookingTable/index.js +++ b/src/components/BookingTable/index.js @@ -128,6 +128,36 @@ const ErrorMessage = styled.p` text-align: center; `; +const ModalWrapper = styled.div` + .startTime { + display: flex; + justify-content: flex-end; + margin-top: 15px; + margin-bottom: 10px; + margin-right: 20px; + } + .endTime { + display: flex; + justify-content: flex-end; + margin-right: 20px; + margin-bottom: 10px; + } + .textInput { + display: flex; + justify-content: flex-end; + margin-right: 20px; + margin-bottom: 10px; + } + .textArea { + width: 278px; + height: 93px; + resize: none; + border-radius: 2px; + border: none; + text-align: initial; + } +`; + class BookingTable extends Component { static propTypes = { locale: PropTypes.shape({ @@ -445,67 +475,71 @@ class BookingTable extends Component { )} - - this.bookTime( - this.state.timeStamp, - this.state.userName, - this.state.userId, - this.state.bookTimeText, - this.state.startTime, - this.state.endTime - )} - onSubmit2={() => this.setState({ showModal: false })} - > -
-
- {this.props.locale.start} - Blue clock icon - {this.state.range.length > 0 && ( - { - this.setState({ startTime: date }, () => { - this.validateDate(); - }); - }} - /> - )} - {this.state.valid === false && ( - NotValidIcon + + + this.bookTime( + this.state.timeStamp, + this.state.userName, + this.state.userId, + this.state.bookTimeText, + this.state.startTime, + this.state.endTime )} -
+ onSubmit2={() => this.setState({ showModal: false })} + >
- {this.props.locale.end} - Red clock icon - {this.state.range.length > 0 && ( - { - this.setState({ endTime: date }, () => { - this.validateDate(); - }); - }} +
+ {this.props.locale.start} + Blue clock icon + {this.state.range.length > 0 && ( + { + this.setState({ startTime: date }, () => { + this.validateDate(); + }); + }} + /> + )} + {this.state.valid === false && ( + NotValidIcon + )} +
+
+ {this.props.locale.end} + Red clock icon + {this.state.range.length > 0 && ( + { + this.setState({ endTime: date }, () => { + this.validateDate(); + }); + }} + /> + )} +
+
+ {this.props.locale.note} + Grey note icon +