Skip to content

Commit

Permalink
remove feature flag (#2277)
Browse files Browse the repository at this point in the history
  • Loading branch information
ratik21 authored Sep 13, 2024
1 parent c270172 commit 50c4ee3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ import { Button } from '@zero-tech/zui/components/Button';
import { ConnectButton } from '@rainbow-me/rainbowkit';
import { State } from '../../../../store/account-management';

const featureFlags = { enableAddWallets: true };
jest.mock('../../../../lib/feature-flags', () => ({
featureFlags: featureFlags,
}));

// Mock the ConnectButton from rainbowkit
jest.mock('@rainbow-me/rainbowkit', () => ({
ConnectButton: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { CreateEmailAccountContainer } from '../../../../authentication/create-e
import { ScrollbarContainer } from '../../../scrollbar-container';
import { ConnectButton } from '@rainbow-me/rainbowkit';
import { Color, Modal, Variant } from '../../../modal';
import { featureFlags } from '../../../../lib/feature-flags';
import { State as AddWalletState } from '../../../../store/account-management';

const cn = bemClassName('account-management-panel');
Expand Down Expand Up @@ -103,7 +102,7 @@ export class AccountManagementPanel extends React.Component<Properties, State> {
</div>
)}

{featureFlags.enableAddWallets && wallets.length === 0 && this.renderAddNewWalletButton()}
{wallets.length === 0 && this.renderAddNewWalletButton()}
</div>
);
};
Expand Down
8 changes: 0 additions & 8 deletions src/lib/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,6 @@ export class FeatureFlags {
this._setBoolean('enableCollapseableMenu', value);
}

get enableAddWallets() {
return this._getBoolean('enableAddWallets', false);
}

set enableAddWallets(value: boolean) {
this._setBoolean('enableAddWallets', value);
}

get enableMeows() {
return this._getBoolean('enableMeows', false);
}
Expand Down

0 comments on commit 50c4ee3

Please sign in to comment.