This commit is contained in:
john 2022-05-10 15:24:01 +07:00
parent fe358b6698
commit 7e85124c45
2 changed files with 4 additions and 47 deletions

View File

@ -54,3 +54,6 @@ Unsupported for now(2022-03-18 UTC).
- Support HECO
- Support BSC
- Support SOL
- i18n
- night mode

View File

@ -1,32 +1,14 @@
import React from 'react';
import {
ChakraProvider,
Box,
Text,
Link,
VStack,
Code,
Grid,
theme,
Button,
} from '@chakra-ui/react';
import { ColorModeSwitcher } from './ColorModeSwitcher';
import { Logo } from './Logo';
import { PhoneIcon } from '@chakra-ui/icons';
import { connectWallet } from './lib/eth'
import { Layout } from './components/Layout';
import { Layout } from './components';
import { Outlet } from 'react-router-dom'
import { Home } from './pages'
import { AppContextProvider } from './AppContext';
function App() {
const onConnect = () => {
connectWallet()
}
return (
<AppContextProvider>
<ChakraProvider theme={theme}>
@ -39,31 +21,3 @@ function App() {
}
export default App;
{/* <Box textAlign="center" fontSize="xl">
<Grid minH="100vh" p={3}>
<ColorModeSwitcher justifySelf="flex-end" />
<VStack spacing={8}>
<PhoneIcon />
<Text>
{process.env.NODE_ENV}
</Text>
<Logo h="40vmin" pointerEvents="none" />
<Text>
Edit <Code fontSize="xl">src/App.js</Code> and save to reload.
</Text>
<Link
color="teal.500"
href="https://chakra-ui.com"
fontSize="2xl"
target="_blank"
rel="noopener noreferrer"
>
Learn Chakra
</Link>
<Button colorScheme='teal' onClick={onConnect}>
Connect
</Button>
</VStack>
</Grid>
</Box> */}