diff --git a/src/pages/iou/steps/IOUAmountPage.js b/src/pages/iou/steps/IOUAmountPage.js index 7e5d6898924e..79136e69cbad 100755 --- a/src/pages/iou/steps/IOUAmountPage.js +++ b/src/pages/iou/steps/IOUAmountPage.js @@ -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'; @@ -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 */ @@ -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. */ @@ -239,7 +236,7 @@ class IOUAmountPage extends React.Component { /> - {this.props.isSmallScreenWidth + {canUseTouchScreen() ? (