Skip to content

Commit

Permalink
Merge pull request #3004 from Expensify/marcaaron-fixButtonWithLoader
Browse files Browse the repository at this point in the history
[No QA] Fix a ButtonWithLoader usage
  • Loading branch information
jasperhuangg authored May 19, 2021
2 parents 20abc45 + 8d84464 commit 21c7f92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/iou/IOUDetailsModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ONYXKEYS from '../../ONYXKEYS';
import themeColors from '../../styles/themes/default';
import HeaderWithCloseButton from '../../components/HeaderWithCloseButton';
import Navigation from '../../libs/Navigation/Navigation';
import ButtonWithLoader from '../../components/ButtonWithLoader';
import Button from '../../components/Button';
import ScreenWrapper from '../../components/ScreenWrapper';
import {payIOUReport} from '../../libs/actions/IOU';
import {fetchIOUReportByID} from '../../libs/actions/Report';
Expand Down Expand Up @@ -123,10 +123,11 @@ class IOUDetailsModal extends Component {
{(this.props.iouReport.hasOutstandingIOU
&& this.props.iouReport.managerEmail === sessionEmail && (
<View style={styles.p5}>
<ButtonWithLoader
<Button
success
text={this.props.translate('iou.settleElsewhere')}
isLoading={this.props.iou.loading}
onClick={this.performIOUPayment}
onPress={this.performIOUPayment}
/>
</View>
))}
Expand Down

0 comments on commit 21c7f92

Please sign in to comment.