-
Notifications
You must be signed in to change notification settings - Fork 162
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
feat: port to starknet-react v2 & add notifications #276
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Super cool ! A lot of comments to be sure I understand
pages/[addressOrDomain].tsx
Outdated
if (lastConnectedConnectorId === null) { | ||
return; | ||
} | ||
// useLayoutEffect(() => { |
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.
can't we delete ?
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.
ah yes, I dream of deleting this part! If you can't reproduce any of the wallet issues we had before, this goes !
new InjectedConnector({ options: { id: "braavos" } }), | ||
new InjectedConnector({ options: { id: "argentX" } }), | ||
braavos(), | ||
argent(), |
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.
cool 🫡
> | ||
<div className={styles.menu}> | ||
<button className={styles.menu_close} onClick={closeModal}> | ||
<svg viewBox="0 0 24 24"> |
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.
should we keep this icon in a seperate file like we do for other svgs?
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.
yes actually it was already in there, so I updated
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.
Small stuff to delete ! Good Pr thx !
components/UI/wallets.tsx
Outdated
@@ -30,7 +30,8 @@ const Wallets: FunctionComponent<WalletsProps> = ({ | |||
}, [account, closeWallet]); | |||
|
|||
function connectWallet(connector: Connector): void { | |||
connect(connector); | |||
console.log("connecting", connector); |
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.
to delete
pages/index.tsx
Outdated
return ( | ||
<div className={styles.screen}> | ||
<div className={styles.container}> | ||
<div className={styles.blur1}> | ||
<Blur /> | ||
</div> | ||
{/* For testing purposes */} | ||
<div onClick={submitTx}>Send test tx</div> |
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.
to delete with all the test code ! I tested everything works great 🫡
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.
Just a UI issue and I'm good !
components/UI/navbar.tsx
Outdated
color={theme.palette.secondary.dark} | ||
/> | ||
)} | ||
</li> | ||
{/* Note: I'm not sure that our testnet will be public so we don't show any link */} | ||
{/* <SelectNetwork network={network} /> */} |
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.
You can delete that comments testnet will never be public
components/UI/navbar.tsx
Outdated
color={theme.palette.secondary.dark} | ||
/> | ||
)} | ||
</li> |
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.
close #258
close #236
! I made a test button to send test txs and test the notification modal that needs to be deleted before merging !