Skip to content

Commit

Permalink
change value with reusable const
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladirico committed Jan 30, 2024
1 parent 1880d59 commit c260653
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/screens/authentication/NewOptInScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const contextualHelpMarkdown: ContextualHelpPropsMarkdown = {
body: "authentication.opt_in.contextualHelpContent"
};

export const MIN_HEIGHT_TO_SHOW_FULL_RENDER = 820;

export type ChosenIdentifier = {
identifier: "SPID" | "CIE";
};
Expand Down Expand Up @@ -98,7 +100,7 @@ const NewOptInScreen = (props: Props) => {
}}
>
<ContentWrapper>
{Dimensions.get("screen").height > 820 && (
{Dimensions.get("screen").height > MIN_HEIGHT_TO_SHOW_FULL_RENDER && (
<View style={IOStyles.selfCenter} testID="pictogram-test">
<Pictogram name="passcode" size={120} />
</View>
Expand Down

0 comments on commit c260653

Please sign in to comment.