mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
chore(nui): Remove unused imports
This commit is contained in:
1 parent
6a94dd66fb
commit
1948c783e7
3 files changed
+3
-12
No files matched your search
@@ -1,13 +1,11 @@
|
||||
import { Center, Box, BoxProps } from '@chakra-ui/react';
|
||||
import { Center, Box } from '@chakra-ui/react';
|
||||
import { debugData } from '../utils/debugData';
|
||||
import { motion } from 'framer-motion';
|
||||
import TopBar from './NavBars/TopBar';
|
||||
import LeftBar from './NavBars/LeftBar';
|
||||
import { Routes, Route } from 'react-router-dom';
|
||||
import Resource from './Resource';
|
||||
import RightBar from './NavBars/RightBar';
|
||||
import MainContent from './MainContent';
|
||||
import { useVisibility } from '../providers/VisibilityProvider';
|
||||
|
||||
debugData([
|
||||
{
|
||||
@@ -20,11 +18,7 @@ debugData([
|
||||
},
|
||||
]);
|
||||
|
||||
const MotionBox = motion<BoxProps>(Box);
|
||||
|
||||
const App: React.FC = () => {
|
||||
const { visible } = useVisibility();
|
||||
|
||||
return (
|
||||
<Center w="100%" h="100%">
|
||||
<Box
|
||||
@@ -42,6 +36,7 @@ const App: React.FC = () => {
|
||||
<MainContent>
|
||||
<Routes>
|
||||
<Route path="/:resource" element={<Resource />} />
|
||||
<Route path="/" element={<></>} />
|
||||
</Routes>
|
||||
</MainContent>
|
||||
</Box>
|
||||
|
||||
@@ -2,7 +2,6 @@ import { Box, VStack } from '@chakra-ui/react';
|
||||
import { useState } from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { useNuiEvent } from '../../hooks/useNuiEvent';
|
||||
import { debugData } from '../../utils/debugData';
|
||||
import type { InitData } from '../../types';
|
||||
|
||||
const LeftBar: React.FC = () => {
|
||||
|
||||
@@ -2,7 +2,6 @@ import { useParams } from 'react-router-dom';
|
||||
import { useEffect, useState, useMemo } from 'react';
|
||||
import { fetchNui } from '../utils/fetchNui';
|
||||
import { useNuiEvent } from '../hooks/useNuiEvent';
|
||||
import { debugData } from '../utils/debugData';
|
||||
import { Table, Thead, Tbody, Tr, Th, Td, chakra, Flex, IconButton, Text } from '@chakra-ui/react';
|
||||
import {
|
||||
TriangleDownIcon,
|
||||
@@ -139,7 +138,7 @@ const Resource: React.FC = () => {
|
||||
))}
|
||||
</Thead>
|
||||
<Tbody {...getTableBodyProps()}>
|
||||
{isLoaded ? (
|
||||
{isLoaded && (
|
||||
<>
|
||||
{page.map((row) => {
|
||||
prepareRow(row);
|
||||
@@ -161,8 +160,6 @@ const Resource: React.FC = () => {
|
||||
);
|
||||
})}
|
||||
</>
|
||||
) : (
|
||||
<h2>Loading....</h2>
|
||||
)}
|
||||
</Tbody>
|
||||
</Table>
|
||||
|
||||
Reference in new issue
Block a user