Skip to content

Commit

Permalink
feature flag it
Browse files Browse the repository at this point in the history
  • Loading branch information
ratik21 committed Sep 4, 2024
1 parent ab0ecc1 commit a928afa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ 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';

const cn = bemClassName('account-management-panel');

Expand Down Expand Up @@ -98,7 +99,7 @@ export class AccountManagementPanel extends React.Component<Properties, State> {
</div>
)}

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

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

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

export const featureFlags = new FeatureFlags();
Expand Down

0 comments on commit a928afa

Please sign in to comment.