Skip to content

Commit

Permalink
Revert strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mimi-imtbl committed Dec 18, 2024
1 parent 7ffbebb commit d71efda
Showing 1 changed file with 30 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,35 +70,37 @@ export class AddTokens extends Base<WidgetType.ADD_TOKENS> {
const { t } = i18n;

this.reactRoot.render(
<CustomAnalyticsProvider checkout={this.checkout}>
<ThemeProvider id="add-tokens-container" config={this.strongConfig()}>
<HandoverProvider>
<ProvidersContextProvider
initialState={{
checkout: this.checkout,
toProvider: this.parameters.toProvider,
}}
>
<Suspense
fallback={
<LoadingView loadingText={t('views.LOADING_VIEW.text')} />
}
<React.StrictMode>
<CustomAnalyticsProvider checkout={this.checkout}>
<ThemeProvider id="add-tokens-container" config={this.strongConfig()}>
<HandoverProvider>
<ProvidersContextProvider
initialState={{
checkout: this.checkout,
toProvider: this.parameters.toProvider,
}}
>
<AddTokensWidget
config={this.strongConfig()}
toTokenAddress={this.parameters.toTokenAddress}
toAmount={this.parameters.toAmount}
showBridgeOption={this.parameters.showBridgeOption}
showSwapOption={this.parameters.showSwapOption}
showOnrampOption={this.parameters.showOnrampOption}
showBackButton={this.parameters.showBackButton}
experiments={this.parameters.experiments}
/>
</Suspense>
</ProvidersContextProvider>
</HandoverProvider>
</ThemeProvider>
</CustomAnalyticsProvider>,
<Suspense
fallback={
<LoadingView loadingText={t('views.LOADING_VIEW.text')} />
}
>
<AddTokensWidget
config={this.strongConfig()}
toTokenAddress={this.parameters.toTokenAddress}
toAmount={this.parameters.toAmount}
showBridgeOption={this.parameters.showBridgeOption}
showSwapOption={this.parameters.showSwapOption}
showOnrampOption={this.parameters.showOnrampOption}
showBackButton={this.parameters.showBackButton}
experiments={this.parameters.experiments}
/>
</Suspense>
</ProvidersContextProvider>
</HandoverProvider>
</ThemeProvider>
</CustomAnalyticsProvider>
</React.StrictMode>,
);
}
}

0 comments on commit d71efda

Please sign in to comment.