Skip to content

Conversation

pchrysochoidis
Copy link
Contributor

  • in site-connect view for every newly created account show NEW next to it, instead of only the last one
Screen.Recording.2023-03-14.at.11.57.21.mov

closes APPS-577

@vercel
Copy link

vercel bot commented Mar 14, 2023

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

3 Ignored Deployments
Name Status Preview Comments Updated
explorer ⬜️ Ignored (Inspect) Mar 14, 2023 at 0:56AM (UTC)
explorer-storybook ⬜️ Ignored (Inspect) Mar 14, 2023 at 0:56AM (UTC)
wallet-adapter ⬜️ Ignored (Inspect) Mar 14, 2023 at 0:56AM (UTC)

@@ -40,6 +41,14 @@ export function WalletListSelect({
return accounts;
}, [accounts, visibleValues]);
const deriveNextAccount = useDeriveNextAccountMutation();
useEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't feel like it should be an effect since it isn't a side effect of rendering, it's more so a result of someone clicking the "New account" button. I think we could remove this and just update newAccounts from where we call mutate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah good point, I will update it!

* in site-connect view for every newly created account show NEW next to it, instead of only the last one
@pchrysochoidis pchrysochoidis force-pushed the pc-wallet-ext-apps-577-new-for-all branch from 0a1fd61 to 7ca580b Compare March 14, 2023 12:55
@pchrysochoidis pchrysochoidis merged commit a9330e5 into main Mar 14, 2023
@pchrysochoidis pchrysochoidis deleted the pc-wallet-ext-apps-577-new-for-all branch March 14, 2023 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants