From 92b6da1d37da9232f1f40ac2526b189289049534 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Mon, 13 Sep 2021 17:25:51 +0530 Subject: created new new address component for unlimited addresses --- src/components/Form/Address/NewAddressPane.tsx | 69 ++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/components/Form/Address/NewAddressPane.tsx (limited to 'src/components/Form/Address') diff --git a/src/components/Form/Address/NewAddressPane.tsx b/src/components/Form/Address/NewAddressPane.tsx new file mode 100644 index 0000000..4dd3788 --- /dev/null +++ b/src/components/Form/Address/NewAddressPane.tsx @@ -0,0 +1,69 @@ +/* + * OpenBills - Self hosted browser app to generate and keep track of simple invoices + * Version - 0 + * Licensed under the MIT license - https://opensource.org/licenses/MIT + * + * Copyright (c) 2021 Vidhu Kant Sharma +*/ + +import React, { Dispatch, SetStateAction, useState } from "react"; +import "./../Form.scss"; +import { Address } from "./../../../Interfaces/interfaces" + +interface Props { + heading: string + address: Address + setAddress: Dispatch> +} + +const NewAddressPane: React.FC = (props) => { + const address = props.address; + +return ( +
+

{props.heading}

+ + + + + + + + + + +
+ ); +} + +export default NewAddressPane; -- cgit v1.2.3