Skip to content

Commit

Permalink
feat: Conditionally render subscription change button in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
limichange committed Feb 18, 2025
1 parent dc3aaee commit 31d5efc
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
XStack,
} from '@onekeyhq/components';
import { ETranslations } from '@onekeyhq/shared/src/locale';
import platformEnv from '@onekeyhq/shared/src/platformEnv';
import { formatDateFns } from '@onekeyhq/shared/src/utils/dateUtils';
import openUrlUtils from '@onekeyhq/shared/src/utils/openUrlUtils';

Expand Down Expand Up @@ -80,14 +81,16 @@ function PrimeUserInfoMoreButtonDropDownMenu({
}
}}
/>
<ActionList.Item
label="Change Subscription"
icon="CreditCardOutline"
onClose={handleActionListClose}
onPress={async () => {
void doPurchase?.();
}}
/>
{platformEnv.isDev ? (
<ActionList.Item
label="Change Subscription"
icon="CreditCardOutline"
onClose={handleActionListClose}
onPress={async () => {
void doPurchase?.();
}}
/>
) : null}
</>
) : null}
<Divider mx="$2" my="$1" />
Expand Down

0 comments on commit 31d5efc

Please sign in to comment.