Skip to content

Commit

Permalink
changed some files
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Cross committed Oct 18, 2024
1 parent 4f39ef0 commit f8f8c43
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions app/components/UI/Swaps/components/InfoModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/no-unstable-nested-components */
import React from 'react';
import { StyleSheet, View, TouchableOpacity, SafeAreaView } from 'react-native';
import Modal from 'react-native-modal';
Expand Down Expand Up @@ -92,7 +91,13 @@ interface InfoViewProps {
};
}

const InfoView: React.FC<InfoViewProps> = ({ message, urlText, url, onClose, style }) => {
const InfoView: React.FC<InfoViewProps> = ({
message,
urlText,
url,
onClose,
style,
}) => {
if (!message) {
return <CloseButton onPress={onClose} style={style} />;
}
Expand Down
2 changes: 1 addition & 1 deletion app/components/Views/AccountBackupStep1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const AccountBackupStep1 = (props) => {
...getOnboardingNavbarOptions(
route,
// eslint-disable-next-line react/display-name
{ headerLeft: null },
{ headerLeft: () => <View /> },
colors,
),
gesturesEnabled: false,
Expand Down
2 changes: 1 addition & 1 deletion app/components/Views/ChoosePassword/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ class ChoosePassword extends PureComponent {
if (!prevLoading && loading) {
// update navigationOptions
navigation.setParams({
headerLeft: null,
headerLeft: () => <View />,
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/components/Views/ResetPassword/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class ResetPassword extends PureComponent {
if (!prevLoading && loading) {
// update navigationOptions
navigation.setParams({
headerLeft: null,
headerLeft: () => <View />,
});
}
}
Expand Down

0 comments on commit f8f8c43

Please sign in to comment.