From 748e70a86633c8bb3ba57a5136ed55bbaebe9c4c Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Fri, 2 Jul 2021 20:00:14 +0530 Subject: added reset buttons to the form --- src/components/Form/Document/DocumentInfoForm.tsx | 19 +++- src/components/Form/Form.scss | 11 +++ src/components/Form/Items/AddNewItemForm.tsx | 108 ++++++++++++++++------ 3 files changed, 109 insertions(+), 29 deletions(-) (limited to 'src') diff --git a/src/components/Form/Document/DocumentInfoForm.tsx b/src/components/Form/Document/DocumentInfoForm.tsx index 6193233..18d0be5 100644 --- a/src/components/Form/Document/DocumentInfoForm.tsx +++ b/src/components/Form/Document/DocumentInfoForm.tsx @@ -8,10 +8,13 @@ import React, { useState } from "react"; import { Person } from "./../../../interfaces"; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' +import { faSync } from '@fortawesome/free-solid-svg-icons' import "./../Form.scss"; import SelectClientForm from "./../People/SelectClientForm"; + interface Props { savedPeople: Person[] invoiceNumber: number @@ -29,9 +32,19 @@ const DocumentInfoForm: React.FC = (props) => {
@@ -136,12 +162,22 @@ const AddNewItemForm: React.FC = (props) => {