From d077a7115bfe1f97c1043df1cd8ce6c42851b598 Mon Sep 17 00:00:00 2001 From: Javier Esses Date: Thu, 24 Sep 2020 14:56:33 -0300 Subject: [PATCH] Remove tinyQr from developer settings --- apps/IdentityApp/.env | 1 - apps/IdentityApp/README.md | 2 -- apps/IdentityApp/src/Providers/Endpoints.ts | 4 +--- .../settings/components/DeveloperSettingsComponent.tsx | 5 ----- apps/IdentityApp/src/features/settings/reducer.ts | 1 - 5 files changed, 1 insertion(+), 12 deletions(-) diff --git a/apps/IdentityApp/.env b/apps/IdentityApp/.env index b8cae36..e90caef 100644 --- a/apps/IdentityApp/.env +++ b/apps/IdentityApp/.env @@ -1,6 +1,5 @@ ISSUER_NAME= ISSUER_ENDPOINT= -TINYQR_ENDPOINT= IPFS_GATEWAY_ENDPOINT= DATA_VAULT_ENDPOINT= RSK_NODE= diff --git a/apps/IdentityApp/README.md b/apps/IdentityApp/README.md index 732acd9..74129df 100644 --- a/apps/IdentityApp/README.md +++ b/apps/IdentityApp/README.md @@ -10,7 +10,6 @@ Create a .env file with the following settings: ``` ISSUER_NAME= ISSUER_ENDPOINT= -TINYQR_ENDPOINT= IPFS_GATEWAY_ENDPOINT=https://ipfs.io/ipfs DATA_VAULT_ENDPOINT= RSK_NODE= @@ -23,7 +22,6 @@ CONVEY_DID= ``` ISSUER_NAME=RIFOS ISSUER_ENDPOINT=https://identity-credentials.testnet.rifos.org -TINYQR_ENDPOINT=https://identity-tiny-qr.testnet.rifos.org IPFS_GATEWAY_ENDPOINT=https://ipfs.io/ipfs DATA_VAULT_ENDPOINT=https://identity-data-vault.testnet.rifos.org RSK_NODE=https://did.testnet.rsk.co:4444 diff --git a/apps/IdentityApp/src/Providers/Endpoints.ts b/apps/IdentityApp/src/Providers/Endpoints.ts index e650ddc..80c6fcb 100644 --- a/apps/IdentityApp/src/Providers/Endpoints.ts +++ b/apps/IdentityApp/src/Providers/Endpoints.ts @@ -1,7 +1,6 @@ import { StorageProvider, STORAGE_KEYS } from './index'; import { ISSUER_ENDPOINT, - TINYQR_ENDPOINT, IPFS_GATEWAY_ENDPOINT, DATA_VAULT_ENDPOINT, RSK_NODE, @@ -11,7 +10,6 @@ import { export const defaults = { issuer: ISSUER_ENDPOINT, - tinyQr: TINYQR_ENDPOINT, ipfs: IPFS_GATEWAY_ENDPOINT, dataVault: DATA_VAULT_ENDPOINT, rskNode: RSK_NODE, @@ -19,7 +17,7 @@ export const defaults = { conveyDid: CONVEY_DID }; -export const getEndpoint = (name: 'issuer' | 'tinyQr' | 'ipfs' | 'dataVault' | 'rskNode' | 'convey' | 'conveyDid') => +export const getEndpoint = (name: 'issuer' | 'ipfs' | 'dataVault' | 'rskNode' | 'convey' | 'conveyDid') => StorageProvider.get(STORAGE_KEYS.END_POINTS) .then(res => res && JSON.parse(res)) .then(json => json[name]) diff --git a/apps/IdentityApp/src/features/settings/components/DeveloperSettingsComponent.tsx b/apps/IdentityApp/src/features/settings/components/DeveloperSettingsComponent.tsx index 2ac7b0b..7e0d6e5 100644 --- a/apps/IdentityApp/src/features/settings/components/DeveloperSettingsComponent.tsx +++ b/apps/IdentityApp/src/features/settings/components/DeveloperSettingsComponent.tsx @@ -73,11 +73,6 @@ const DeveloperSettingsComponent: React.FC = ({ value={newEndpoints.issuer} onChange={async text => handleChange('issuer', text)} /> - handleChange('tinyQr', text)} - />