Skip to content

Commit

Permalink
remove insurance and banl remnants
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass committed Aug 15, 2024
1 parent 6517360 commit 01c4cdd
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 532 deletions.
4 changes: 2 additions & 2 deletions shared/types/Issuers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export enum Issuers {
Government = "GOVERNMENT",
CompanyHouse = "COMPANY_HOUSE",
Bank = "BANK",
Insurance = "INSURANCE",
// Bank = "BANK",
// Insurance = "INSURANCE",
}
2 changes: 1 addition & 1 deletion shared/types/Providers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export enum Providers {
WaltId = "WALT_ID",
// WaltId = "WALT_ID",
Impierce = "IMPIERCE",
TangleLabs = "TANGLE_LABS",
}
4 changes: 2 additions & 2 deletions shared/types/Scopes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export enum Scopes {
Government = "GOVERNMENT",
CompanyHouse = "COMPANY_HOUSE",
Bank = "BANK",
Insurance = "INSURANCE",
// Bank = "BANK",
// Insurance = "INSURANCE",
}
42 changes: 2 additions & 40 deletions web/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@
"newlyIncorporatedCompanies": "Newly Incorporated Companies"
},
"companyData": {
"businessOwner": "Business Owner",
"companyDetails": "Company Details",
"companyName": "Company Name",
"companyAddress": "Company Address",
"companyType": "Company Type",
Expand All @@ -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",
Expand Down
1 change: 0 additions & 1 deletion web/src/context/globalState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/Company/CompanyData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const CompanyData: React.FC = () => {
<h2>{t("pages.company.companyData.setUpPrivateCompany")}</h2>
<h3>{t("pages.company.companyData.subTitle")}</h3>
<section>
<h3 className='section-header'>{t("pages.insurance.insuranceData.businessOwner")}</h3>
<h3 className='section-header'>{t("pages.company.companyData.businessOwner")}</h3>

{relevantCredential && relevantCredential.issuer &&
<>
Expand Down Expand Up @@ -163,7 +163,7 @@ const CompanyData: React.FC = () => {
}
</section>
<section>
<h3 className='section-header'>{t("pages.insurance.insuranceData.companyDetails")}</h3>
<h3 className='section-header'>{t("pages.company.companyData.companyDetails")}</h3>

{issuerDID &&
<>
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Company/ReceiveCredentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}, []);

Expand Down
38 changes: 0 additions & 38 deletions web/src/pages/Insurance/Confirmation.tsx

This file was deleted.

141 changes: 0 additions & 141 deletions web/src/pages/Insurance/InsuranceData.tsx

This file was deleted.

70 changes: 0 additions & 70 deletions web/src/pages/Insurance/ProveIdentity.tsx

This file was deleted.

Loading

0 comments on commit 01c4cdd

Please sign in to comment.