From 7f0ec291e713bbb1891f92d2457bf5700ab17efa Mon Sep 17 00:00:00 2001 From: Andinus Date: Sun, 26 Sep 2021 17:22:31 +0530 Subject: Finalize App --- .gitignore | 1 + client/src/App.css | 14 ++++++++++++-- client/src/App.tsx | 12 ++++++------ client/src/components/Records.tsx | 17 +++++++++-------- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index a9812ed..207879e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.DS_Store .cache dist node_modules diff --git a/client/src/App.css b/client/src/App.css index 9f86207..f7df80e 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -224,7 +224,7 @@ input[type="number"] { padding-left: 30px; } details { - border: 1px solid #aaa; + border: 1px dashed var(--red); border-radius: 4px; padding: .5em .5em 0; } @@ -240,10 +240,20 @@ details[open] { } details[open] summary { - border-bottom: 1px solid #aaa; + border-bottom: 1px solid var(--red); margin-bottom: .5em; } .apneReports{ padding-top: 10px; line-height: 1.5; } +.labelIska { + font-weight: 700; +} +input, textarea { + border: 1px solid var(--red); +} +textarea { + width: 95%; + height: 120px; +} \ No newline at end of file diff --git a/client/src/App.tsx b/client/src/App.tsx index 56b7ded..2ea7724 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -30,7 +30,7 @@ const App = () => { const [activeTab, setActiveTab] = useState("transfer"); // Granadanet Memoir contract - const contractAddress: string = "KT1PjaJZxYvE335fdD7GXLshPWdFAYan1ta3"; + const contractAddress: string = "KT1XDxSuXHBBtLDZRd2ZpEMYkxgutMc7a6mU"; const generateQrCode = (): { __html: string } => { const qr = qrcode(0, "L"); @@ -172,11 +172,11 @@ const App = () => { {JSON.parse(storage.records[idx]).date} - Name: {JSON.parse(storage.records[idx]).name}

- Age: {JSON.parse(storage.records[idx]).age}

- Height: {JSON.parse(storage.records[idx]).height}

- Weight: {JSON.parse(storage.records[idx]).weight}

- Prescription: {JSON.parse(storage.records[idx]).prescription}

+ Name: {JSON.parse(storage.records[idx]).name}

+ Age: {JSON.parse(storage.records[idx]).age}

+ Height: {JSON.parse(storage.records[idx]).height}

+ Weight: {JSON.parse(storage.records[idx]).weight}

+ Prescription: {JSON.parse(storage.records[idx]).prescription}

)} diff --git a/client/src/components/Records.tsx b/client/src/components/Records.tsx index 130e985..54dc946 100644 --- a/client/src/components/Records.tsx +++ b/client/src/components/Records.tsx @@ -50,27 +50,28 @@ const Records = ({ contract, setUserBalance, Tezos, userAddress, setStorage }: R return (
- + setName(event.target.value)} required/>
- + setDate(event.target.value)} required/>
- + setAge(event.target.value)} required/>
- + setHeight(event.target.value)} required/>
- + setWeight(event.target.value)} required/>
- +     setHospital(event.target.value)} required/>
- - +
+