This repository has been archived by the owner on Jul 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from gt732/react
code formatting fix, title fix
- Loading branch information
Showing
17 changed files
with
1,103 additions
and
981 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,24 @@ | ||
import React, { useState } from 'react'; | ||
import { | ||
ChakraProvider, | ||
Grid, | ||
GridItem, | ||
} from '@chakra-ui/react'; | ||
import { ChakraProvider, Grid, GridItem } from '@chakra-ui/react'; | ||
import Sidebar from './components/main/Sidebar'; | ||
import Main from './components/main/Main'; | ||
import { AppContext } from './AppContext'; | ||
|
||
|
||
|
||
export default function App() { | ||
|
||
const [appData, setAppData] = useState({}); | ||
|
||
return ( | ||
<ChakraProvider> | ||
<AppContext.Provider value={{ appData, setAppData }}> | ||
<Grid templateColumns='repeat(7, 1fr)' overflow='auto' > | ||
<GridItem | ||
colSpan='1' | ||
bg='#202324' | ||
minHeight='100vh' | ||
p='30px' | ||
|
||
> | ||
<Sidebar /> | ||
</GridItem> | ||
<GridItem | ||
colSpan='6' | ||
p='30px' | ||
bg='#0B0E12' | ||
minHeight='100vh' | ||
> | ||
<Main /> | ||
</GridItem> | ||
|
||
</Grid> | ||
</AppContext.Provider> | ||
<Grid templateColumns="repeat(7, 1fr)" overflow="auto"> | ||
<GridItem colSpan="1" bg="#202324" minHeight="100vh" p="30px"> | ||
<Sidebar /> | ||
</GridItem> | ||
<GridItem colSpan="6" p="30px" bg="#0B0E12" minHeight="100vh"> | ||
<Main /> | ||
</GridItem> | ||
</Grid> | ||
</AppContext.Provider> | ||
</ChakraProvider> | ||
); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { createContext } from 'react'; | ||
|
||
export const AppContext = createContext(); | ||
export const AppContext = createContext(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.