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'} - +