From f6186b99bca2b25a4c91d6223c08b03c1cccb933 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sat, 3 Jul 2021 01:50:20 +0530 Subject: Added datepicker with custom css --- src/components/Form/Document/DocumentInfoForm.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/components/Form') diff --git a/src/components/Form/Document/DocumentInfoForm.tsx b/src/components/Form/Document/DocumentInfoForm.tsx index 18d0be5..6135b33 100644 --- a/src/components/Form/Document/DocumentInfoForm.tsx +++ b/src/components/Form/Document/DocumentInfoForm.tsx @@ -7,9 +7,12 @@ */ import React, { useState } from "react"; +import DatePicker from "react-datepicker"; +import "./../../../styles/datepicker.scss"; // custom datepicker css +// import "react-datepicker/dist/react-datepicker.css"; import { Person } from "./../../../interfaces"; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faSync } from '@fortawesome/free-solid-svg-icons' +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { faSync } from '@fortawesome/free-solid-svg-icons'; import "./../Form.scss"; import SelectClientForm from "./../People/SelectClientForm"; @@ -23,6 +26,7 @@ interface Props { const DocumentInfoForm: React.FC = (props) => { const [invoiceNumber, setInvoiceNumber] = useState(props.invoiceNumber); + const [invoiceDate, setInvoiceDate] = useState(new Date()); return (
= (props) => {
-- cgit v1.2.3