Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/pages/iou/steps/IOUAmountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import _ from 'underscore';
import ONYXKEYS from '../../../ONYXKEYS';
import styles from '../../../styles/styles';
import BigNumberPad from '../../../components/BigNumberPad';
import withWindowDimensions, {windowDimensionsPropTypes} from '../../../components/withWindowDimensions';
import Navigation from '../../../libs/Navigation/Navigation';
import ROUTES from '../../../ROUTES';
import withLocalize, {withLocalizePropTypes} from '../../../components/withLocalize';
Expand All @@ -20,6 +19,7 @@ import Button from '../../../components/Button';
import Text from '../../../components/Text';
import CONST from '../../../CONST';
import TextInputAutoWidthWithoutKeyboard from '../../../components/TextInputAutoWidthWithoutKeyboard';
import canUseTouchScreen from '../../../libs/canUseTouchscreen';

const propTypes = {
/** Whether or not this IOU has multiple participants */
Expand All @@ -46,9 +46,6 @@ const propTypes = {
/** Previously selected amount to show if the user comes back to this screen */
selectedAmount: PropTypes.string.isRequired,

/** Window Dimensions Props */
...windowDimensionsPropTypes,

/* Onyx Props */

/** Holds data related to IOU view state, rather than the underlying IOU data. */
Expand Down Expand Up @@ -239,7 +236,7 @@ class IOUAmountPage extends React.Component {
/>
</View>
<View style={[styles.w100, styles.justifyContentEnd]}>
{this.props.isSmallScreenWidth
{canUseTouchScreen()
? (
<BigNumberPad
numberPressed={this.updateAmountNumberPad}
Expand All @@ -264,7 +261,6 @@ IOUAmountPage.propTypes = propTypes;
IOUAmountPage.defaultProps = defaultProps;

export default compose(
withWindowDimensions,
withLocalize,
withOnyx({
currencyList: {key: ONYXKEYS.CURRENCY_LIST},
Expand Down