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

chore: update watch wallet recommendations #633

Merged
merged 7 commits into from
Jun 20, 2023
29 changes: 25 additions & 4 deletions src/entries/popup/components/WatchWallet/WatchWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,32 @@ import { WalletAvatar } from '../WalletAvatar/WalletAvatar';

const recommendedTopAccounts = [
'vitalik.eth',
'bored.eth',
'skillet.eth',
'worm.eth',
'nickbytes.eth',
'gami.eth',
'maaria.eth',
'cdixon.eth',
'hublot.eth',
'rainbowwallet.eth',
];
'nick.eth',
'sassal.eth',
'shaq.eth',
'simona.eth',
'sohrab.eth',
'sadaf.eth',
'nnnnicholas.eth',
'dom.eth',
'poap.eth',
'dwr.eth',
'jacob.eth',
'callil.eth',
'johnpalmer.eth',
'shl0ms.eth',
'gremplin.eth',
'chrismartz.eth',
] // shuffle the list
.map((value) => ({ value, sort: Math.random() }))
.sort((a, b) => a.sort - b.sort)
.map(({ value }) => value);
Comment on lines +65 to +67
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion

Suggested change
.map((value) => ({ value, sort: Math.random() }))
.sort((a, b) => a.sort - b.sort)
.map(({ value }) => value);
.sort(() => 0.5 - Math.random());


function RecommendedAccountRow({
name,
Expand Down