File tree Expand file tree Collapse file tree 6 files changed +36
-51
lines changed
Expand file tree Collapse file tree 6 files changed +36
-51
lines changed Original file line number Diff line number Diff line change 11APP_VERSION = 2.6.0
2- APP_BUILD_NUMBER = 463
2+ APP_BUILD_NUMBER = 464
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
1313 EmailLogin ,
1414 SignatureLogin ,
1515 Invoice ,
16+ Download ,
1617 Aml
1718} from "@screens" ;
1819import {
@@ -96,6 +97,7 @@ const App = () => {
9697 < Route path = "signature-login" element = { < SignatureLogin /> } />
9798 < Route path = "wallet" element = { < Wallet /> } />
9899 < Route path = "history" element = { < History /> } />
100+ < Route path = "download" element = { < Download /> } />
99101 < Route path = "connect/:id" element = { < Connect /> } />
100102 < Route path = "invoice/:id?" element = { < Invoice /> } />
101103 < Route path = "aml/:id?" element = { < Aml /> } />
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import { useEffect } from "react" ;
2+ import { platform } from "@config" ;
3+ import { useNavigate } from "@components/Router" ;
4+ import { Loader } from "@components" ;
5+ import { Linking } from "@utils" ;
6+
7+ const { isWeb, isIos, isAndroid } = platform ;
8+
9+ export const Download = ( ) => {
10+ const navigate = useNavigate ( ) ;
11+
12+ useEffect ( ( ) => {
13+ if ( ! isWeb ) {
14+ navigate ( "/" ) ;
15+ } else {
16+ if ( isIos ) {
17+ void Linking . openURL (
18+ "https://apps.apple.com/app/swiss-bitcoin-pay/id6444370155"
19+ ) ;
20+ } else if ( isAndroid ) {
21+ void Linking . openURL (
22+ "https://play.google.com/store/apps/details?id=ch.swissbitcoinpay.checkout"
23+ ) ;
24+ } else {
25+ navigate ( "/signup" ) ;
26+ }
27+ }
28+ } , [ ] ) ;
29+
30+ return < Loader /> ;
31+ } ;
Original file line number Diff line number Diff line change 1+ export { Download } from "./Download" ;
Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ export { SignatureLogin } from "./SignatureLogin";
1111export { History } from "./History" ;
1212export { Signup } from "./Signup" ;
1313export { Aml } from "./Aml" ;
14+ export { Download } from "./Download" ;
You can’t perform that action at this time.
0 commit comments