aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-26 23:26:20 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-26 23:26:20 +0530
commite54214c8ecdcf264a0f055ae24afe3299c0c7697 (patch)
treef030fe9d80174a27a79f026e6b7d6775ca44e0ac
parent7f64269194103cc7436041b59676cd96e4a099a0 (diff)
Fixed and styled ClientInfoDisplay
-rw-r--r--src/components/Display/ClientInfoDisplay.tsx (renamed from src/components/Display/ClientInfoDisplay.js)10
-rw-r--r--src/components/Form/Form.scss25
-rw-r--r--src/components/Form/People/SelectClientForm.tsx4
3 files changed, 30 insertions, 9 deletions
diff --git a/src/components/Display/ClientInfoDisplay.js b/src/components/Display/ClientInfoDisplay.tsx
index 7eb46d2..ad65e40 100644
--- a/src/components/Display/ClientInfoDisplay.js
+++ b/src/components/Display/ClientInfoDisplay.tsx
@@ -7,12 +7,16 @@
*/
import React from "react";
+import { Person } from "./../../interfaces";
import "./Display.scss";
-const ClientInfoDisplay = (props) => {
- //console.log(props.client)
+interface Props {
+ client: Person
+}
+
+const ClientInfoDisplay: React.FC<Props> = (props) => {
return (
- <table>
+ <table className={"ClientInfoDisplay"}>
<tbody>
<tr>
<td>Client Name:</td>
diff --git a/src/components/Form/Form.scss b/src/components/Form/Form.scss
index 393a2d3..6a9e747 100644
--- a/src/components/Form/Form.scss
+++ b/src/components/Form/Form.scss
@@ -122,15 +122,32 @@ input {
@include formPane();
width: 100%;
min-height: 10rem;
+ margin-bottom: 1.5rem;
}
-.DocumentInfoForm .DocumentInfoChild {
- border: 1px solid white;
- width: 40%;
+.DocumentInfoForm .documentInfoChild {
+ width: 24rem;
height: 10rem;
- font-size: $fontSize2;
+ font-size: $fontSize1;
+}
+
+.DocumentInfoForm .documentInfoChild label {
+ @include formWideLabel();
+ margin-bottom: 0.5rem;
+}
+
+.documentInfoChild table {
+ width: 100%;
}
+.documentInfoChild td {
+ text-align: left;
+}
+
+/*.ClientInfoDisplay {
+ font-size: $fontSize1;
+}*/
+
.MetaInfoForm {
width: 60%;
}
diff --git a/src/components/Form/People/SelectClientForm.tsx b/src/components/Form/People/SelectClientForm.tsx
index 373c387..f91bf41 100644
--- a/src/components/Form/People/SelectClientForm.tsx
+++ b/src/components/Form/People/SelectClientForm.tsx
@@ -18,7 +18,7 @@ interface Props {
const SelectClientForm: React.FC<Props> = (props) => {
// TODO: fix the default selectedClient
- const [selectedClient, setSelectedClient] = useState<Person>({Name: "pp", Address: "pp"});
+ const [selectedClient, setSelectedClient] = useState<Person>({Name: "", Address: ""});
const enterValuePrompt = "start typing here";
const registerPrompt = "add new";
@@ -38,7 +38,7 @@ const SelectClientForm: React.FC<Props> = (props) => {
e === formatter(i) && setSelectedClient(i))
return (
- <div className={"DocumentInfoChild"}>
+ <div className={"documentInfoChild"}>
<label>
Client Name:
<select