Skip to content

Commit

Permalink
refactor: simplify config
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Aug 6, 2022
1 parent cf3c7d6 commit beaf96f
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions packages/widget/src/config/lifi.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import LIFI, { ConfigUpdate } from '@lifi/sdk';

const defaultConfig = {
// apiUrl: env.LIFI_API_URL,
// defaultRouteOptions: {
// integrator: 'li.fi',
// },
};

export const LiFi = new LIFI(defaultConfig);
export const LiFi = new LIFI();

export const updateLiFiConfig = (configUpdate?: ConfigUpdate) => {
LiFi.setConfig({ ...defaultConfig, ...configUpdate });
export const updateLiFiConfig = (configUpdate: ConfigUpdate) => {
LiFi.setConfig(configUpdate);
};

0 comments on commit beaf96f

Please sign in to comment.