Skip to content

Commit

Permalink
Revert "Add discover ledger accounts button"
Browse files Browse the repository at this point in the history
This reverts commit d1c05aa.
  • Loading branch information
Lbqds committed Oct 22, 2024
1 parent d1c05aa commit 200b0c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion packages/extension/locales/en-US/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@
"Experimental": "Experimental",
"Update Token List": "Update Token List",
"Discover accounts": "Discover accounts",
"Discover ledger accounts": "Discover ledger accounts",
"Developer settings": "Developer settings",
"Developer Settings": "Developer Settings",
"Add network": "Add network",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,9 @@ const DeveloperSettings: FC = () => {
const onDiscoverAccounts = useCallback(async () => {
setLoading(true)
await discoveryLocalAccounts()
setLoading(false)
}, [setLoading, discoveryLocalAccounts])

const onDiscoverLedgerAccounts = useCallback(async () => {
setLoading(true)
await discoveryLedgerAccounts()
setLoading(false)
}, [setLoading, discoveryLedgerAccounts])
}, [setLoading, discoveryLocalAccounts, discoveryLedgerAccounts])

if (loading) {
return <LoadingScreen />
Expand Down Expand Up @@ -124,13 +119,6 @@ const DeveloperSettings: FC = () => {
>
{t("Discover accounts")}
</ButtonCell>
<ButtonCell
rightIcon={<SearchIcon fontSize="inherit" />}
onClick={onDiscoverLedgerAccounts}
title={t("Discover ledger accounts")}
>
{t("Discover ledger accounts")}
</ButtonCell>
</CellStack>
</>
)
Expand Down

0 comments on commit 200b0c9

Please sign in to comment.