forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
32 lines (28 loc) · 827 Bytes
/
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
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import './App.css';
import { root } from '.';
import { Wallet, WalletProvider } from 'sui-wallet-adapter-react';
import { SuiWalletAdapter, MockWalletAdapter} from '@sui-wallet-adapter/all-wallets';
import { WalletWrapper } from 'sui-wallet-adapter-ui';
import { Button } from '@mui/material';
import { TestButton } from './TestButton';
function App() {
const supportedWallets: Wallet[] = [
{
adapter: new SuiWalletAdapter()
},
];
return (
<div className="App">
<header className="App-header">
<WalletProvider supportedWallets={supportedWallets}>
<TestButton/>
<WalletWrapper/>
</WalletProvider>
</header>
</div>
);
}
export default App;