mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 06:28:53 +00:00
chore(nui): Rename some exported components
This commit is contained in:
1 parent
bee8f5881a
commit
8a45f430fc
3 files changed
+9
-9
No files matched your search
@@ -1,11 +1,11 @@
|
|||||||
import { Center, Box } from '@chakra-ui/react';
|
import { Center, Box } from '@chakra-ui/react';
|
||||||
import { debugData } from '../utils/debugData';
|
import { debugData } from '../utils/debugData';
|
||||||
import TopBar from './NavBars/TopBar';
|
import TopBar from './NavBars/TopBar';
|
||||||
import SideBar from './NavBars/LeftBar';
|
import LeftBar from './NavBars/LeftBar';
|
||||||
import { Routes, Route } from 'react-router-dom';
|
import { Routes, Route } from 'react-router-dom';
|
||||||
import Resource from './Resource';
|
import Resource from './Resource';
|
||||||
import RightBar from './NavBars/RightBar';
|
import RightBar from './NavBars/RightBar';
|
||||||
import Content from './MainContent';
|
import MainContent from './MainContent';
|
||||||
|
|
||||||
debugData([
|
debugData([
|
||||||
{
|
{
|
||||||
@@ -19,13 +19,13 @@ const App: React.FC = () => {
|
|||||||
<Center w="100%" h="100%">
|
<Center w="100%" h="100%">
|
||||||
<Box width="60%" height="60%" backgroundColor="#191E26" borderRadius="1vh" color="white" fontFamily="Poppins">
|
<Box width="60%" height="60%" backgroundColor="#191E26" borderRadius="1vh" color="white" fontFamily="Poppins">
|
||||||
<TopBar />
|
<TopBar />
|
||||||
<SideBar />
|
<LeftBar />
|
||||||
<RightBar />
|
<RightBar />
|
||||||
<Content>
|
<MainContent>
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/:resource" element={<Resource />} />
|
<Route path="/:resource" element={<Resource />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</Content>
|
</MainContent>
|
||||||
</Box>
|
</Box>
|
||||||
</Center>
|
</Center>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Box, Center } from '@chakra-ui/react';
|
import { Box, Center } from '@chakra-ui/react';
|
||||||
|
|
||||||
const Content: React.FC = ({ children }) => {
|
const MainContent: React.FC = ({ children }) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Center h="95%">
|
<Center h="95%">
|
||||||
@@ -13,4 +13,4 @@ const Content: React.FC = ({ children }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Content;
|
export default MainContent;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Box, VStack } from '@chakra-ui/react';
|
import { Box, VStack } from '@chakra-ui/react';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
const SideBar: React.FC = () => {
|
const LeftBar: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<Box p="1.2vh" fontSize="1.5vh" float="left">
|
<Box p="1.2vh" fontSize="1.5vh" float="left">
|
||||||
<VStack align="left">
|
<VStack align="left">
|
||||||
@@ -13,4 +13,4 @@ const SideBar: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default SideBar;
|
export default LeftBar;
|
||||||
Reference in new issue
Block a user