Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
Fix/smart banner appid switch and close/open (#646) (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
thabti authored and ahmedre committed Mar 13, 2017
1 parent 667f909 commit a563999
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/SmartBanner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ class SmartBanner extends Component {
const mixins = {
ios: {
icon: 'app-banner-ios.jpg',
appMeta: 'google-play-app',
appMeta: 'apple-itunes-app',
getStoreLink: () =>
`https://itunes.apple.com/${this.props.appStoreLanguage}/app/id`,
},
android: {
icon: 'app-banner-android.png',
appMeta: 'apple-itunes-app',
appMeta: 'google-play-app',
getStoreLink: () =>
'http://play.google.com/store/apps/details?id=',
}
Expand Down Expand Up @@ -178,7 +178,7 @@ class SmartBanner extends Component {
<a
tabIndex="-1"
className="smartbanner-close"
onClick={this.close}
onClick={() => this.close()}
data-metrics-event-name="SmartBanner:close"
>
<i className="fa fa-times-circle" />
Expand All @@ -190,7 +190,7 @@ class SmartBanner extends Component {
<span>{inStore}</span>
</div>

<a href={link} onClick={this.install} className="smartbanner-button" data-metrics-event-name="SmartBanner:InstallAapp">
<a href={link} onClick={() => this.install()} className="smartbanner-button" data-metrics-event-name="SmartBanner:InstallAapp">
<span className="smartbanner-button-text">{this.props.button}</span>
</a>
</div>
Expand Down

0 comments on commit a563999

Please sign in to comment.