fix(nui): Main content wrapper

This commit is contained in:
Luke committed 2021-12-31 00:38:53 +01:00
1 parent 6493762795
commit bee8f5881a
3 files changed
+23 -11

No files matched your search

+1 -8
View File
@@ -1,16 +1,9 @@
import { useParams } from 'react-router-dom';
import { Box, Center } from '@chakra-ui/react';
const Resource: React.FC = () => {
let { resource } = useParams();
return (
<Center h="95%">
<Box h="100%" w="95%" backgroundColor="#1B2129">
<h2>{resource}</h2>
</Box>
</Center>
);
return <h2>{resource}</h2>;
};
export default Resource;