Skip to content

Commit 3ff5436

Browse files
committed
nit fix
1 parent d270e72 commit 3ff5436

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

app/_locales/en_GB/messages.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/components/app/toast-master/selectors.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717
getPermissions,
1818
isSolanaAccount,
1919
} from '../../../selectors';
20-
import { getRemoteFeatureFlags } from '../../../selectors/remote-feature-flags';
2120
import { MetaMaskReduxState } from '../../../store/store';
2221
import {
2322
PasswordChangeToastType,
@@ -253,17 +252,19 @@ export function selectShowShieldEndingToast(
253252
* @returns Boolean indicating whether to show the banner
254253
*/
255254
export function selectShowPna25Banner(state: Pick<State, 'metamask'>): boolean {
256-
const { completedOnboarding, participateInMetaMetrics, pna25Acknowledged } =
257-
state.metamask || {};
255+
const {
256+
completedOnboarding,
257+
participateInMetaMetrics,
258+
pna25Acknowledged,
259+
remoteFeatureFlags,
260+
} = state.metamask || {};
258261

259262
// Only show to users who have completed onboarding
260263
if (!completedOnboarding) {
261264
return false; // User hasn't completed onboarding yet
262265
}
263266

264-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
265-
const remoteFeatureFlags = getRemoteFeatureFlags(state as any);
266-
const isPna25Enabled = remoteFeatureFlags?.extensionUxPna25;
267+
const isPna25Enabled = remoteFeatureFlags?.['extension-ux-pna25'];
267268

268269
// Check all conditions
269270
if (!isPna25Enabled) {

ui/components/app/toast-master/toast-master.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ function Pna25Banner() {
781781
<Icon name={IconName.Info} color={IconColor.infoDefault} />
782782
}
783783
text={t('pna25BannerTitle')}
784+
textVariant={TextVariant.bodySm}
784785
actionText={t('learnMoreUpperCase')}
785786
onActionClick={handleLearnMore}
786787
onClose={handleClose}

ui/pages/onboarding-flow/metametrics/metametrics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function OnboardingMetametrics() {
7171

7272
// Check if the PNA25 feature is enabled
7373
// extension-ux-pna25 is a boolean LaunchDarkly flag
74-
const isPna25Enabled = Boolean(remoteFeatureFlags?.['extension-ux-pna25']);
74+
const isPna25Enabled = remoteFeatureFlags?.extensionUxPna25;
7575

7676
const [
7777
isParticipateInMetaMetricsChecked,

0 commit comments

Comments
 (0)