From dad3b86ba7089523254a57d7ded4b419ee6898a5 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 8 Aug 2018 15:29:01 +0100 Subject: [PATCH] Add play icon to the Play button for media --- app/src/component/fileDownloadButton/view.js | 23 ++++++++++---------- app/src/styles/button.js | 5 +++-- app/src/styles/wallet.js | 3 ++- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/app/src/component/fileDownloadButton/view.js b/app/src/component/fileDownloadButton/view.js index c7901fe1..fe05f737 100644 --- a/app/src/component/fileDownloadButton/view.js +++ b/app/src/component/fileDownloadButton/view.js @@ -1,5 +1,6 @@ import React from 'react'; import { NativeModules, Text, View, TouchableOpacity } from 'react-native'; +import Button from '../button'; import fileDownloadButtonStyle from '../../styles/fileDownloadButton'; class FileDownloadButton extends React.PureComponent { @@ -64,17 +65,17 @@ class FileDownloadButton extends React.PureComponent { ); } return ( - { - if (NativeModules.Mixpanel) { - NativeModules.Mixpanel.track('Purchase Uri', { Uri: uri }); - } - purchaseUri(uri); - if (isPlayable && onPlay) { - this.props.onPlay(); - } - }}> - {isPlayable ? 'Play' : 'Download'} - +