From 687c3a9b7422a88e2570f5b25a70a5a8537d59d0 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 23 May 2018 16:35:43 +0200 Subject: [PATCH] remove Intercom * closes #197 --- .eslintrc | 1 - index.html | 7 ---- js/app.js | 1 - js/components/ascribe_detail/edition.js | 9 +---- .../file_drag_and_drop_error_dialog.js | 10 +---- .../market_error_consign_unavailable.js | 6 +-- js/third_party/intercom_handler.js | 39 ------------------- sass/ascribe_custom_style.scss | 5 --- .../portfolioreview_custom_style.scss | 6 --- .../prize/sluice/sluice_custom_style.scss | 8 ---- .../wallet/23vivi/23vivi_custom_style.scss | 6 --- .../wallet/artcity/artcity_custom_style.scss | 6 --- .../wallet/bokk/bokk_custom_style.scss | 8 ---- .../whitelabel/wallet/cc/cc_custom_style.scss | 8 ---- .../wallet/cyland/cyland_custom_style.scss | 8 ---- .../wallet/ikonotv/ikonotv_custom_style.scss | 9 ----- .../wallet/market/market_custom_style.scss | 6 --- .../wallet/polline/polline_custom_style.scss | 6 --- 18 files changed, 4 insertions(+), 145 deletions(-) delete mode 100644 js/third_party/intercom_handler.js diff --git a/.eslintrc b/.eslintrc index 5751f3ad..a69e01de 100644 --- a/.eslintrc +++ b/.eslintrc @@ -33,7 +33,6 @@ "react/wrap-multilines": 1 }, "globals": { - "Intercom": true, "fetch": true, "require": true, "File": true diff --git a/index.html b/index.html index 2692c00f..a6a007c5 100644 --- a/index.html +++ b/index.html @@ -31,13 +31,6 @@
- - - diff --git a/js/app.js b/js/app.js index 4d950d74..29558be2 100644 --- a/js/app.js +++ b/js/app.js @@ -25,7 +25,6 @@ import EventActions from './actions/event_actions'; // You can comment out the modules you don't need // import DebugHandler from './third_party/debug_handler'; import FacebookHandler from './third_party/facebook_handler'; -import IntercomHandler from './third_party/intercom_handler'; import NotificationsHandler from './third_party/notifications_handler'; import RavenHandler from './third_party/raven_handler'; diff --git a/js/components/ascribe_detail/edition.js b/js/components/ascribe_detail/edition.js index 178fd18a..4ce6e3ba 100644 --- a/js/components/ascribe_detail/edition.js +++ b/js/components/ascribe_detail/edition.js @@ -230,13 +230,6 @@ let CoaDetails = React.createClass({ coaError: React.PropTypes.object }, - contactOnIntercom() { - const { coaError, editionId } = this.props; - - window.Intercom('showNewMessage', getLangText("Hi, I'm having problems generating a Certificate of Authenticity for Edition: %s", editionId)); - console.logGlobal(new Error(`Coa couldn't be created for edition: ${editionId}`), coaError); - }, - render() { const { coa, coaError } = this.props; let coaDetailElement; @@ -246,7 +239,7 @@ let CoaDetails = React.createClass({

{getLangText('There was an error generating your Certificate of Authenticity.')}

,

{getLangText('Try to refresh the page. If this happens repeatedly, please ')} - {getLangText('contact us')}. + {getLangText('contact us')}.

]; } else if (coa && coa.url_safe) { diff --git a/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_error_dialog.js b/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_error_dialog.js index a88d2e35..dd028ed2 100644 --- a/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_error_dialog.js +++ b/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_error_dialog.js @@ -17,18 +17,12 @@ let FileDragAndDropErrorDialog = React.createClass({ handleRetryFiles: React.PropTypes.func.isRequired }, - getRetryButton(text, openIntercom) { + getRetryButton(text) { return ( ); diff --git a/js/components/whitelabel/wallet/components/market/market_error_consign_unavailable.js b/js/components/whitelabel/wallet/components/market/market_error_consign_unavailable.js index 13fbc43e..f43b0b71 100644 --- a/js/components/whitelabel/wallet/components/market/market_error_consign_unavailable.js +++ b/js/components/whitelabel/wallet/components/market/market_error_consign_unavailable.js @@ -13,10 +13,6 @@ const MarketErrorConsignUnavailable = React.createClass({ handleSuccess: React.PropTypes.func }, - contactOnIntercom() { - window.Intercom('showNewMessage', getLangText("Hi, I'm having problems consigning to %s", this.props.whitelabelName)); - }, - render() { const { editions, handleSuccess, whitelabelName } = this.props; const multipleEditions = editions.length > 1; @@ -39,7 +35,7 @@ const MarketErrorConsignUnavailable = React.createClass({ {getLangText('If this seems incorrect, or if you would still like to consign %s to %s, please ', multipleEditions ? 'these Editions' : 'this Edition', whitelabelName)} - {getLangText('contact us')}. + {getLangText('contact us')}.