Skip to content

Commit

Permalink
fix: update the apiUrl and remove mytonwallet from the excluded walle…
Browse files Browse the repository at this point in the history
…ts list in the playground
  • Loading branch information
Ikari-Shinji-re authored and yeager-eren committed Nov 27, 2024
1 parent b654f5e commit b96d0ac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions widget/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"browserslist": "> 0.5%, last 2 versions, not dead",
"scripts": {
"dev": "parcel -p 3005 --cache-dir=.parcel-cache --no-cache",
"dev": "parcel -p 3000 --cache-dir=.parcel-cache --no-cache",
"build": "parcel build --cache-dir=.parcel-cache",
"ts-check": "tsc --declaration --emitDeclarationOnly -p ./tsconfig.json",
"clean": "rimraf .parcel-cache && rimraf dist",
Expand Down Expand Up @@ -38,4 +38,4 @@
"zustand": "^4.3.2"
},
"gitHead": "a4584c2a3341fe23e033a9ff2db0f201b0a6278c"
}
}
5 changes: 3 additions & 2 deletions widget/playground/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ConfigContainer } from './containers/configContainer';
import { useTheme } from './hooks/useTheme';
import { initialConfig, useConfigStore } from './store/config';
import { useMetaStore } from './store/meta';
import { RANGO_PUBLIC_API_KEY } from './utils/configs';
// import { RANGO_PUBLIC_API_KEY } from './utils/configs';
import { filterConfig } from './utils/export';

export function App() {
Expand All @@ -23,7 +23,8 @@ export function App() {
theme: {},
...config,
...filteredConfigForExport,
apiKey: RANGO_PUBLIC_API_KEY,
apiUrl: 'https://api-01.rng-dev.online',
apiKey: '4a624ab5-16ff-4f96-90b7-ab00ddfc342c',
features: {
theme: 'hidden',
},
Expand Down
7 changes: 4 additions & 3 deletions widget/playground/src/services/httpService.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { RangoClient } from 'rango-sdk';

import { getConfig } from '../utils/configs';

let rangoClient: RangoClient | undefined = undefined;

export const rango = () => {
if (rangoClient) {
return rangoClient;
}
rangoClient = new RangoClient(getConfig('API_KEY'));
rangoClient = new RangoClient(
'4a624ab5-16ff-4f96-90b7-ab00ddfc342c',
'https://api-01.rng-dev.online'
);
return rangoClient;
};
1 change: 0 additions & 1 deletion widget/playground/src/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,4 @@ export const excludedWallets = [
WalletTypes.STATION,
WalletTypes.LEAP,
WalletTypes.SAFE,
WalletTypes.MY_TON_WALLET,
];

0 comments on commit b96d0ac

Please sign in to comment.