diff --git a/shared/types/Issuers.ts b/shared/types/Issuers.ts
index df679d90..dfdb4db2 100644
--- a/shared/types/Issuers.ts
+++ b/shared/types/Issuers.ts
@@ -1,6 +1,6 @@
export enum Issuers {
Government = "GOVERNMENT",
CompanyHouse = "COMPANY_HOUSE",
- Bank = "BANK",
- Insurance = "INSURANCE",
+ // Bank = "BANK",
+ // Insurance = "INSURANCE",
}
\ No newline at end of file
diff --git a/shared/types/Providers.ts b/shared/types/Providers.ts
index db6b5fc2..caf3a9ea 100644
--- a/shared/types/Providers.ts
+++ b/shared/types/Providers.ts
@@ -1,5 +1,5 @@
export enum Providers {
- WaltId = "WALT_ID",
+ // WaltId = "WALT_ID",
Impierce = "IMPIERCE",
TangleLabs = "TANGLE_LABS",
}
\ No newline at end of file
diff --git a/shared/types/Scopes.ts b/shared/types/Scopes.ts
index 7715b1e8..3eff99cf 100644
--- a/shared/types/Scopes.ts
+++ b/shared/types/Scopes.ts
@@ -1,6 +1,6 @@
export enum Scopes {
Government = "GOVERNMENT",
CompanyHouse = "COMPANY_HOUSE",
- Bank = "BANK",
- Insurance = "INSURANCE",
+ // Bank = "BANK",
+ // Insurance = "INSURANCE",
}
diff --git a/web/public/locales/en/translation.json b/web/public/locales/en/translation.json
index 6524fc55..71574eeb 100644
--- a/web/public/locales/en/translation.json
+++ b/web/public/locales/en/translation.json
@@ -257,6 +257,8 @@
"newlyIncorporatedCompanies": "Newly Incorporated Companies"
},
"companyData": {
+ "businessOwner": "Business Owner",
+ "companyDetails": "Company Details",
"companyName": "Company Name",
"companyAddress": "Company Address",
"companyType": "Company Type",
@@ -266,46 +268,6 @@
}
},
- "bank": {
- "confirmation": {
- "confirmation": "Your Bank Credential Was Sent To Your Wallet",
- "title": "🎉",
- "success": "Congratulations, You Claimed Your Bank Account!",
- "nextStep": "Next, Apply for Insurance"
- },
- "bankData": {
- "accountTypes": {
- "label": "Choose Bank Account Type",
- "error": "Please choose an account type",
- "accounts1": "Business Checking Account",
- "accounts2": "Business Savings Account",
- "special": "Brokerage Account"
- }
- }
- },
- "insurance": {
- "confirmation": {
- "confirmation": "Your Insurance Credential Was Sent To Your Wallet",
- "title": "🎉",
- "success": "Congratulations, You Claimed Your Insurance!",
- "nextStep": "Ready for business"
- },
- "insuranceData": {
- "openAnAccount": "Open an Account",
- "accountType": "Account Type",
- "businessOwner": "Business Owner",
- "companyDetails": "Company Details",
- "bankAccountDetails": "Bank Account Details",
- "accountTypes": {
- "label": "Choose Liability Insurance Type",
- "error": "Please choose a type of liability insurance",
- "accounts1": "General Liability",
- "accounts2": "Professional Liability",
- "accounts3": "Employer Liability",
- "special": "Business Liability"
- }
- }
- },
"general": {
"proveIdentity": {
"waitingForLogin": "Waiting for connection",
diff --git a/web/src/context/globalState.tsx b/web/src/context/globalState.tsx
index edfa3c7a..1db76f10 100644
--- a/web/src/context/globalState.tsx
+++ b/web/src/context/globalState.tsx
@@ -162,7 +162,6 @@ const requestPresentation: RequestPresentation = (provider, scope, presentationD
}
// OIDC4VCI
-// TODO: Issuers.Bank
type RequestIssuance = (provider: Providers, scope: Scopes, credentials: {type: string, data?: any}[], issuer: Issuers) => void
const requestIssuance: RequestIssuance = (provider, scope, credentials, issuer) => {
socket.emit('requestIssuance',
diff --git a/web/src/pages/Company/CompanyData.tsx b/web/src/pages/Company/CompanyData.tsx
index a6a8bb27..aa7dcac3 100644
--- a/web/src/pages/Company/CompanyData.tsx
+++ b/web/src/pages/Company/CompanyData.tsx
@@ -133,7 +133,7 @@ const CompanyData: React.FC = () => {
{t("pages.company.companyData.setUpPrivateCompany")}
{t("pages.company.companyData.subTitle")}
- {t("pages.insurance.insuranceData.businessOwner")}
+ {t("pages.company.companyData.businessOwner")}
{relevantCredential && relevantCredential.issuer &&
<>
@@ -163,7 +163,7 @@ const CompanyData: React.FC = () => {
}
- {t("pages.insurance.insuranceData.companyDetails")}
+ {t("pages.company.companyData.companyDetails")}
{issuerDID &&
<>
diff --git a/web/src/pages/Company/ReceiveCredentials.tsx b/web/src/pages/Company/ReceiveCredentials.tsx
index bb834430..dcb678bf 100644
--- a/web/src/pages/Company/ReceiveCredentials.tsx
+++ b/web/src/pages/Company/ReceiveCredentials.tsx
@@ -45,7 +45,7 @@ const ReceiveCredentials: React.FC = () => {
provider: Providers.Impierce,
scope: Scopes.CompanyHouse,
credentials: [{type: CompanyCredentialConfig.template.type.at(-1) as string, data: state.COMPANY_HOUSE?.issuanceData}],
- issuer: Issuers.Bank //TODO: should be COMPANY_HOUSE?
+ issuer: Issuers.CompanyHouse
})
}, []);
diff --git a/web/src/pages/Insurance/Confirmation.tsx b/web/src/pages/Insurance/Confirmation.tsx
deleted file mode 100644
index 26c5032c..00000000
--- a/web/src/pages/Insurance/Confirmation.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import React, { useState, useEffect } from 'react';
-import { Link } from 'react-router-dom';
-import { Button } from 'antd';
-import { getCompanyId } from '../../utils/helper';
-import useStep from '../../utils/useStep';
-import { Layout, RandomGraphicElement } from '../../components';
-import selv from '../../assets/selvSuccessBordered.svg';
-import { useTranslation } from 'react-i18next';
-
-/**
- * Component which will display a Confirmation.
- */
-const Confirmation: React.FC = () => {
- const { nextStep, theme } = useStep();
-
- const { t } = useTranslation();
- return (
-
-
-
-
-
-
{t("pages.insurance.confirmation.confirmation")}
-
-
{t("pages.insurance.confirmation.title")}
-
{t("pages.insurance.confirmation.success")}
-
-
-
-
-
-
- );
-};
-
-export default Confirmation;
diff --git a/web/src/pages/Insurance/InsuranceData.tsx b/web/src/pages/Insurance/InsuranceData.tsx
deleted file mode 100644
index 86c45bc3..00000000
--- a/web/src/pages/Insurance/InsuranceData.tsx
+++ /dev/null
@@ -1,141 +0,0 @@
-import React, { useState, useEffect } from 'react';
-import { Button, notification } from 'antd';
-import { flattenObject } from '../../utils/helper';
-import { Layout, Loading, Form, PrefilledForm } from '../../components';
-import { useTranslation } from 'react-i18next';
-import { useGlobalState } from '../../context/globalState';
-import { Link } from 'react-router-dom';
-import useStep from '../../utils/useStep';
-import { Scopes } from '@shared/types/Scopes';
-import CitizenCredentialConfig from '@shared/credentials/CitizenCredential.json';
-
-const prefilledFields = [
- 'FirstName',
- 'LastName',
- 'Date',
- 'Nationality',
- 'Birthplace',
- 'Country',
- 'Phone'
-];
-
-const emptyFields = [
- 'CompanyName',
- 'CompanyAddress',
- 'CompanyType',
- 'CompanyBusiness'
-];
-
-const labels = {
- CompanyName: 'pages.company.companyData.companyName',
- CompanyAddress: 'pages.company.companyData.companyAddress',
- CompanyType: 'pages.company.companyData.companyType',
- CompanyBusiness: 'pages.company.companyData.companyBusiness'
-};
-
-const messages = {
- waiting: 'general.messages.waiting',
- connectionError: 'general.messages.connectionError',
- missing: 'general.messages.missing',
- verifying: 'general.messages.verifying'
-};
-
-const notify = (type: string, message: string, description: string) => {
- return type === 'error'
- ? notification.error({ message, description })
- : notification.warning({ message, description });
-};
-
-/**
- * Component which will display a CompanyData.
- */
-const CompanyData: React.FC = ({ history, match }: any) => {
- const [fields, setFields] = useState