From c69475e30fc2e1a72f5fd63739317ca31326ac1a Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 18 Dec 2019 10:57:17 +0100 Subject: [PATCH] add tip modal to file view --- src/component/modalTipView/view.js | 22 ++++++-- src/page/channel/view.js | 2 + src/page/file/view.js | 87 +++++------------------------- src/styles/modalTip.js | 13 +++++ 4 files changed, 48 insertions(+), 76 deletions(-) diff --git a/src/component/modalTipView/view.js b/src/component/modalTipView/view.js index 70d38a9..301a225 100644 --- a/src/component/modalTipView/view.js +++ b/src/component/modalTipView/view.js @@ -65,14 +65,16 @@ export default class ModalTipView extends React.PureComponent { }; render() { - const { balance, onCancelPress, onOverlayPress } = this.props; + const { balance, channelName, contentName, onCancelPress, onOverlayPress } = this.props; const canSendTip = this.state.tipAmount > 0; return ( - {__('Send a tip')} + + {channelName ? __('Send a tip to %channel%', { channel: channelName }) : __('Send a tip')} + @@ -100,6 +102,20 @@ export default class ModalTipView extends React.PureComponent { {this.state.sendTipStarted && } + + + {__( + 'This will appear as a tip for %content%, which will boost its ability to be discovered while active.', + { content: contentName } + )} + + + +