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

Commit a563999

Browse files
thabtiahmedre
authored andcommitted
Fix/smart banner appid switch and close/open (#646) (#682)
1 parent 667f909 commit a563999

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/SmartBanner/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ class SmartBanner extends Component {
7676
const mixins = {
7777
ios: {
7878
icon: 'app-banner-ios.jpg',
79-
appMeta: 'google-play-app',
79+
appMeta: 'apple-itunes-app',
8080
getStoreLink: () =>
8181
`https://itunes.apple.com/${this.props.appStoreLanguage}/app/id`,
8282
},
8383
android: {
8484
icon: 'app-banner-android.png',
85-
appMeta: 'apple-itunes-app',
85+
appMeta: 'google-play-app',
8686
getStoreLink: () =>
8787
'http://play.google.com/store/apps/details?id=',
8888
}
@@ -178,7 +178,7 @@ class SmartBanner extends Component {
178178
<a
179179
tabIndex="-1"
180180
className="smartbanner-close"
181-
onClick={this.close}
181+
onClick={() => this.close()}
182182
data-metrics-event-name="SmartBanner:close"
183183
>
184184
<i className="fa fa-times-circle" />
@@ -190,7 +190,7 @@ class SmartBanner extends Component {
190190
<span>{inStore}</span>
191191
</div>
192192

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

0 commit comments

Comments
 (0)