Skip to content

Commit b240dfa

Browse files
authored
Remove Ledger feature flags (#288)
1 parent d041e4d commit b240dfa

File tree

3 files changed

+6
-29
lines changed

3 files changed

+6
-29
lines changed

renderer/components/AddAccountDropdown/AddAccountDropdown.tsx

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { defineMessages, useIntl } from "react-intl";
1414
import { ConnectLedgerModal } from "@/components/ConnectLedgerModal/ConnectLedgerModal";
1515
import { CreateAccountModal } from "@/components/CreateAccountModal/CreateAccountModal";
1616
import { ImportAccountModal } from "@/components/ImportAccountModal/ImportAccountModal";
17-
import { useFeatureFlags } from "@/providers/FeatureFlagsProvider";
1817
import { PillButton } from "@/ui/PillButton/PillButton";
1918
import { CreateAccount } from "@/ui/SVGs/CreateAccount";
2019

@@ -38,7 +37,6 @@ const messages = defineMessages({
3837
});
3938

4039
export function AddAccountDropdown() {
41-
const { flags } = useFeatureFlags();
4240
const { formatMessage } = useIntl();
4341

4442
const {
@@ -83,16 +81,12 @@ export function AddAccountDropdown() {
8381
<Text fontSize="md">{formatMessage(messages.importAccount)}</Text>
8482
</HStack>
8583
</MenuItem>
86-
{flags.ledgerSupport.enabled && (
87-
<MenuItem onClick={onLedgerOpen}>
88-
<HStack gap={3}>
89-
<Image src={ledgerIcon} alt="" />
90-
<Text fontSize="md">
91-
{formatMessage(messages.connectLedger)}
92-
</Text>
93-
</HStack>
94-
</MenuItem>
95-
)}
84+
<MenuItem onClick={onLedgerOpen}>
85+
<HStack gap={3}>
86+
<Image src={ledgerIcon} alt="" />
87+
<Text fontSize="md">{formatMessage(messages.connectLedger)}</Text>
88+
</HStack>
89+
</MenuItem>
9690
</MenuList>
9791
</Menu>
9892
{isCreateOpen && <CreateAccountModal isOpen onClose={onCreateClose} />}

renderer/layouts/MainLayout.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,6 @@ function Sidebar() {
149149
return null;
150150
}
151151

152-
// The multisig Ledger tab is only visible if the flag is enabled
153-
if (id === "multisigLedger" && !flags.multisigLedgerSupport.enabled) {
154-
return null;
155-
}
156-
157152
const isActive = router.pathname.startsWith(href);
158153
return (
159154
<ChakraLink

renderer/providers/FeatureFlagsProvider.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,12 @@ const FLAGS_DEFINITION = [
2121
"Turning this flag on will show the Bridge navigation item in the sidebar if the current network is Testnet.",
2222
key: "chainportBridge",
2323
},
24-
{
25-
name: "Ledger Support",
26-
description:
27-
"Turning this flag on will enable importing Ledger accounts and signing transactions with your Ledger device.",
28-
key: "ledgerSupport",
29-
},
3024
{
3125
name: "Global Theme Toggle",
3226
description:
3327
"Turning this flag on will allow double clicking the logo to change the theme",
3428
key: "themeToggle",
3529
},
36-
{
37-
name: "Multisig Ledger Support",
38-
description:
39-
"Turning this flag on will enable signing multisig transactions with your Ledger device.",
40-
key: "multisigLedgerSupport",
41-
},
4230
] as const;
4331

4432
type FlagsDefinition = Writable<(typeof FLAGS_DEFINITION)[number]>;

0 commit comments

Comments
 (0)