From 00e5eef364ffef08d9fc402cdb5d4b6d169ef47f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Eike=20Ha=C3=9F?=
Date: Tue, 6 Aug 2024 19:25:26 +0200
Subject: [PATCH] fix company data
---
tooling/deploy.sh | 15 +++++++++++++++
web/src/components/DomainCheck.tsx | 4 ----
web/src/pages/Company/CompanyData.tsx | 2 +-
3 files changed, 16 insertions(+), 5 deletions(-)
create mode 100644 tooling/deploy.sh
diff --git a/tooling/deploy.sh b/tooling/deploy.sh
new file mode 100644
index 0000000..36b16d6
--- /dev/null
+++ b/tooling/deploy.sh
@@ -0,0 +1,15 @@
+mv ./.env ../.env
+mv ./stronghold.hodl ../data/
+mv ./stronghold_secret.txt ../data/
+mv ./government-did-configuration.json ../data/
+mv ./bank-did-configuration.json ../data/
+mv ./insurance-did-configuration.json ../data/
+
+scp ../.env root@selv.iota.org:/opt/selv/
+scp ../data/stronghold.hodl root@selv.iota.org:/opt/selv/data/
+scp ../data/stronghold_secret.txt root@selv.iota.org:/opt/selv/data/
+scp ../data/government-did-configuration.json root@selv.iota.org:/opt/selv/data/static/government/did-configuration.json
+scp ../data/bank-did-configuration.json root@selv.iota.org:/opt/selv/data/static/bank/did-configuration.json
+scp ../data/insurance-did-configuration.json root@selv.iota.org:/opt/selv/data/static/insurance/did-configuration.json
+
+sed -i -e 's/.selv.iota.org\//.selv.local:${HTTP_PORT}/g' ../.env
\ No newline at end of file
diff --git a/web/src/components/DomainCheck.tsx b/web/src/components/DomainCheck.tsx
index 7d7e0f7..7a77213 100644
--- a/web/src/components/DomainCheck.tsx
+++ b/web/src/components/DomainCheck.tsx
@@ -26,10 +26,6 @@ const DomainCheck = ({ result }: {
avatar={}
title={item.url}
/>
- }
- title={item.url}
- />
)}
/>
diff --git a/web/src/pages/Company/CompanyData.tsx b/web/src/pages/Company/CompanyData.tsx
index 395f1f2..254ebe8 100644
--- a/web/src/pages/Company/CompanyData.tsx
+++ b/web/src/pages/Company/CompanyData.tsx
@@ -136,7 +136,7 @@ const CompanyData: React.FC = ({ history, match }: any) => {
did:iota:rms:0x4868d61773a9f8e54741261a0e82fc883e299c2614c94b2400e2423d4c5bbe6a
}>company.selv.iota.org
{/* TODO */}
- to {state.COMPANY_HOUSE?.connectedDID}
{/* TODO */}
+ to {state.COMPANY_HOUSE?.connectedDID}
{/* TODO */}
{