Skip to content

Commit

Permalink
fixup! feat(mobile): no passphrase button
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Sep 20, 2024
1 parent 68b50f7 commit 5572148
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const SCROLL_DELAY = 100;
type PassphraseFormProps = {
onFocus?: () => void;
inputLabel: string;
noPassphraseEnabled?: boolean;
};

const formStyle = prepareNativeStyle(utils => ({
Expand All @@ -57,7 +58,11 @@ type NavigationProp = StackToStackCompositeNavigationProps<
RootStackParamList
>;

export const PassphraseForm = ({ inputLabel, onFocus }: PassphraseFormProps) => {
export const PassphraseForm = ({
inputLabel,
onFocus,
noPassphraseEnabled,
}: PassphraseFormProps) => {
const dispatch = useDispatch();
const scrollView = useScrollView();
const formWrapperView = useRef<View>(null);
Expand Down Expand Up @@ -151,7 +156,7 @@ export const PassphraseForm = ({ inputLabel, onFocus }: PassphraseFormProps) =>
horizontalMargin={FORM_CARD_PADDING}
/>
<EnterPassphraseOnTrezorButton />
<NoPassphraseButton />
{noPassphraseEnabled && <NoPassphraseButton />}
</VStack>
</Animated.View>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const PassphraseFeatureUnlockFormScreen = () => {
</Text>
<PassphraseForm
inputLabel={translate('modulePassphrase.form.createWalletInputLabel')}
noPassphraseEnabled
/>
</VStack>
</Screen>
Expand Down

0 comments on commit 5572148

Please sign in to comment.