Skip to content

Commit

Permalink
Restore iOS BackButton in CurrencySelectModal (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbaroni authored Nov 23, 2020
1 parent a2ab060 commit a73649f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/exchange/CurrencySelectModalHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import React, { useCallback } from 'react';
import styled from 'styled-components/primitives';
import { delayNext } from '../../hooks/useMagicAutofocus';
import { useNavigation } from '../../navigation/Navigation';
import {
BackButton as ChevronBackButton,
BackButton as IOSBackButton,
} from '../header';
import { BackButton } from '../header';
import { Centered } from '../layout';
import { TruncatedText } from '../text';
import Routes from '@rainbow-me/routes';
Expand Down Expand Up @@ -37,8 +34,6 @@ const Title = styled(TruncatedText).attrs({
height: 21;
`;

const BackButton = ios ? IOSBackButton : ChevronBackButton;

export default function CurrencySelectModalHeader({ testID }) {
const { navigate, dangerouslyGetState } = useNavigation();
const { params } = useRoute();
Expand All @@ -61,7 +56,7 @@ export default function CurrencySelectModalHeader({ testID }) {
height={CurrencySelectModalHeaderHeight}
onPress={handlePressBack}
testID={testID}
textChevron
textChevron={android}
throttle
/>
</BackButtonWrapper>
Expand Down

0 comments on commit a73649f

Please sign in to comment.