aboutsummaryrefslogtreecommitdiff
path: root/src/components/Display/ClientInfoDisplay.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Display/ClientInfoDisplay.tsx')
-rw-r--r--src/components/Display/ClientInfoDisplay.tsx34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/components/Display/ClientInfoDisplay.tsx b/src/components/Display/ClientInfoDisplay.tsx
new file mode 100644
index 0000000..ad65e40
--- /dev/null
+++ b/src/components/Display/ClientInfoDisplay.tsx
@@ -0,0 +1,34 @@
+/*
+ * 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 from "react";
+import { Person } from "./../../interfaces";
+import "./Display.scss";
+
+interface Props {
+ client: Person
+}
+
+const ClientInfoDisplay: React.FC<Props> = (props) => {
+ return (
+ <table className={"ClientInfoDisplay"}>
+ <tbody>
+ <tr>
+ <td>Client Name:</td>
+ <td>{props.client.Name}</td>
+ </tr>
+ <tr>
+ <td>Client Address:</td>
+ <td>{props.client.Address}</td>
+ </tr>
+ </tbody>
+ </table>
+ );
+}
+
+export default ClientInfoDisplay;