Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
Remove tinyQr from developer settings
Browse files Browse the repository at this point in the history
  • Loading branch information
javiesses committed Sep 24, 2020
1 parent 9448264 commit d077a71
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion apps/IdentityApp/.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ISSUER_NAME=
ISSUER_ENDPOINT=
TINYQR_ENDPOINT=
IPFS_GATEWAY_ENDPOINT=
DATA_VAULT_ENDPOINT=
RSK_NODE=
Expand Down
2 changes: 0 additions & 2 deletions apps/IdentityApp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand All @@ -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
Expand Down
4 changes: 1 addition & 3 deletions apps/IdentityApp/src/Providers/Endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { StorageProvider, STORAGE_KEYS } from './index';
import {
ISSUER_ENDPOINT,
TINYQR_ENDPOINT,
IPFS_GATEWAY_ENDPOINT,
DATA_VAULT_ENDPOINT,
RSK_NODE,
Expand All @@ -11,15 +10,14 @@ import {

export const defaults = {
issuer: ISSUER_ENDPOINT,
tinyQr: TINYQR_ENDPOINT,
ipfs: IPFS_GATEWAY_ENDPOINT,
dataVault: DATA_VAULT_ENDPOINT,
rskNode: RSK_NODE,
convey: CONVEY_URL,
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])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ const DeveloperSettingsComponent: React.FC<DeveloperSettingsComponentProps> = ({
value={newEndpoints.issuer}
onChange={async text => handleChange('issuer', text)}
/>
<EditItem
name={strings.tiny_qr}
value={newEndpoints.tinyQr}
onChange={async text => handleChange('tinyQr', text)}
/>
<EditItem
name={strings.ipfs_gateway}
value={newEndpoints.ipfs}
Expand Down
1 change: 0 additions & 1 deletion apps/IdentityApp/src/features/settings/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { SETTINGS_TYPES } from './actions';

export interface EndpointsInterface {
issuer: string;
tinyQr: string;
ipfs: string;
dataVault: string;
rskNode: string;
Expand Down

0 comments on commit d077a71

Please sign in to comment.