From 452327ea9be8e03a2977ae51d191f97d8702091e Mon Sep 17 00:00:00 2001 From: pepper Date: Thu, 21 Jan 2021 01:27:04 -0500 Subject: [PATCH] cleaned redundant imports and cleaned validation --- src/components/root/common/Forms/CPanelBooking.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/root/common/Forms/CPanelBooking.js b/src/components/root/common/Forms/CPanelBooking.js index fc18041..83b4ed6 100644 --- a/src/components/root/common/Forms/CPanelBooking.js +++ b/src/components/root/common/Forms/CPanelBooking.js @@ -2,7 +2,7 @@ import React, { useState } from "react"; import "bootstrap/dist/css/bootstrap.min.css"; import moment from "moment"; import { Col, FormGroup, Row, Container, Label } from "reactstrap"; -import { Formik, Form, Field } from "formik"; +import { Formik, Form } from "formik"; import * as Yup from "yup"; import { Input, Submit } from "formstrap"; import { callAPI } from "../../../actions/API"; @@ -22,10 +22,8 @@ const InputValidation = Yup.object().shape({ ) .required("Please enter a domain"), username: Yup.string().min(2, "Too Short!").required("Required"), - original_server: Yup.string() - .required("Please enter a valid IPv4 or domain"), - new_server: Yup.string() - .required("Please enter a valid IPv4 or domain"), + original_server: Yup.string().required("Please enter a valid IPv4 or domain"), + new_server: Yup.string().required("Please enter a valid IPv4 or domain"), agent_booked: Yup.string() .min(2, "Too short!") .required("Please enter your name!"), @@ -101,7 +99,9 @@ export const CPanelBooking = (timeslots) => { className="has-success" > - {timeslots.timeslots.map((slot) => )} + {timeslots.timeslots.map((slot) => ( + + ))}