feat(nui): Content container, right nav bar

This commit is contained in:
Luke committed 2021-12-31 00:29:25 +01:00
1 parent e3b145bcbd
commit 6493762795
5 files changed
+51 -23

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import { Box, VStack } from '@chakra-ui/react';
import { Link } from 'react-router-dom';
const SideBar: React.FC = () => {
return (
<Box p="1.2vh" fontSize="1.5vh" float="left">
<VStack align="left">
<Link to="es_extended">es_extended</Link>
<Link to="ox_inventory">ox_inventory</Link>
<Link to="luke_garages">luke_garages</Link>
</VStack>
</Box>
);
};
export default SideBar;
+16
View File
@@ -0,0 +1,16 @@
import React from 'react';
import { Box, VStack } from '@chakra-ui/react';
const RightBar: React.FC = () => {
return (
<Box float="right" w="20%" h="max">
<VStack align="left">
<Box>Number of slow queries: 3</Box>
<Box>Most active resource: essentialmode</Box>
<Box>Total number of queries: 732</Box>
</VStack>
</Box>
);
};
export default RightBar;
-15
View File
@@ -1,15 +0,0 @@
import { Box, VStack } from '@chakra-ui/react';
const SideBar: React.FC = () => {
return (
<Box p="1.2vh" fontSize="1.5vh" position="fixed">
<VStack align="left">
<Box>es_extended</Box>
<Box>ox_inventory</Box>
<Box>luke_garages</Box>
</VStack>
</Box>
);
};
export default SideBar;