-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: json assertions #267
fix: json assertions #267
Conversation
@@ -1,7 +1,8 @@ | |||
import type { LiFiStepExtended } from '@lifi/sdk'; | |||
import { useEffect, useState } from 'react'; | |||
import { useTranslation } from 'react-i18next'; | |||
import { useTimer } from 'react-timer-hook'; | |||
import pkg from 'react-timer-hook'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added this as there was an error from one of the examples about this package being common js
@@ -25,8 +25,7 @@ export function WalletHeader() { | |||
<Button | |||
variant="contained" | |||
disableElevation | |||
// onClick={handleDisconnect} | |||
onClick={() => connectAsync({ connector: connectors[0] })} | |||
onClick={() => connectAsync({ connector: connectors[1] })} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wasn't work - this fix at least allow a user to connect using WalletConnect dialog
Jira: LF-9087
We were have some issues in some of the dev tools that we support related to json assertions.
We had originally tried to put json assertions in place but reverted the change as it caused problems with the use of Create React App.
In regards to this, this PR..
nextjs
(next v14) andnextjs-page-router
(next v13) examples to document best usage in Pages and App routerremix
examplein addition..
Though this change also helps improve the usage of the WidgetSkeleton there are still some issues relating to its usage - these might be best explored in future tickets.
nextjs-page-router
example)Testing
I've tested the Widget updates locally using the examples.
Release considerations