forked from ton-connect/demo-dapp-with-react-ui
-
Notifications
You must be signed in to change notification settings - Fork 12
/
App.tsx
52 lines (50 loc) · 1.75 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import './App.scss';
import './trackers';
import {THEME, TonConnectUIProvider} from "@tonconnect/ui-react";
import {Footer} from "./components/Footer/Footer";
import {Header} from "./components/Header/Header";
import {TxForm} from "./components/TxForm/TxForm";
function App() {
return (
<TonConnectUIProvider
manifestUrl="https://ton-connect.github.io/demo-dapp-with-wallet/tonconnect-manifest.json"
uiPreferences={{theme: THEME.DARK}}
walletsListConfiguration={{
includeWallets: [
{
appName: "safepalwallet",
name: "SafePal",
imageUrl: "https://s.pvcliping.com/web/public_image/SafePal_x288.png",
tondns: "",
aboutUrl: "https://www.safepal.com",
universalLink: "https://link.safepal.io/ton-connect",
jsBridgeKey: "safepalwallet",
bridgeUrl: "https://ton-bridge.safepal.com/tonbridge/v1/bridge",
platforms: ["ios", "android", "chrome", "firefox"]
},
{
appName: "tonwallet",
name: "TON Wallet",
imageUrl: "https://wallet.ton.org/assets/ui/qr-logo.png",
aboutUrl: "https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",
universalLink: "https://wallet.ton.org/ton-connect",
jsBridgeKey: "tonwallet",
bridgeUrl: "https://bridge.tonapi.io/bridge",
platforms: ["chrome", "android"]
}
]
}}
actionsConfiguration={{
twaReturnUrl: 'https://t.me/tc_twa_demo_bot/start'
}}
>
<div className="app">
<Header/>
<TxForm/>
{/*<TonProofDemo />*/}
<Footer/>
</div>
</TonConnectUIProvider>
)
}
export default App