Skip to content
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

Merged
merged 21 commits into from
Oct 31, 2023

Conversation

irisdv
Copy link
Collaborator

@irisdv irisdv commented Oct 25, 2023

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 !

@irisdv irisdv added the 🚧 In progress do not merge Pull Request in progress, please do not merge label Oct 25, 2023
@vercel
Copy link

vercel bot commented Oct 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
goerli-starknet-quest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2023 10:39am
starknet-quest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2023 10:39am

Copy link
Contributor

@fricoben fricoben left a 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

components/UI/notifications/modalNotifications.tsx Outdated Show resolved Hide resolved
components/quests/questDetails.tsx Show resolved Hide resolved
if (lastConnectedConnectorId === null) {
return;
}
// useLayoutEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we delete ?

Copy link
Collaborator Author

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 !

utils/timeService.ts Show resolved Hide resolved
types/frontTypes.d.ts Outdated Show resolved Hide resolved
pages/not-connected.tsx Outdated Show resolved Hide resolved
new InjectedConnector({ options: { id: "braavos" } }),
new InjectedConnector({ options: { id: "argentX" } }),
braavos(),
argent(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool 🫡

@fricoben fricoben requested a review from ayushtom October 27, 2023 11:31
components/UI/changeWallet.tsx Outdated Show resolved Hide resolved
>
<div className={styles.menu}>
<button className={styles.menu_close} onClick={closeModal}>
<svg viewBox="0 0 24 24">
Copy link
Contributor

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?

Copy link
Collaborator Author

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

@fricoben fricoben added ❌ Change request Change requested from reviewer and removed 🔥 Ready for review This pull request needs a review labels Oct 27, 2023
Copy link
Contributor

@fricoben fricoben left a 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 !

@@ -30,7 +30,8 @@ const Wallets: FunctionComponent<WalletsProps> = ({
}, [account, closeWallet]);

function connectWallet(connector: Connector): void {
connect(connector);
console.log("connecting", connector);
Copy link
Contributor

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>
Copy link
Contributor

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 🫡

@fricoben fricoben added ❌ Change request Change requested from reviewer and removed 🔥 Ready for review This pull request needs a review labels Oct 29, 2023
Copy link
Contributor

@fricoben fricoben left a 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 !

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} /> */}
Copy link
Contributor

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

color={theme.palette.secondary.dark}
/>
)}
</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

telegram-cloud-photo-size-4-5911058108623470842-x

Imo you can delete both of these buttons when the user is not connected using address ?

Simply because both are not useful for unconnected wallet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔥 Ready for review This pull request needs a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Starknet React Version 2 SQ Notification
4 participants