Skip to content

Commit

Permalink
chore: remove unnessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vantage-ola committed Aug 19, 2024
1 parent f1d82a2 commit a1a5e3a
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion tracknow/web/src/components/MainLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Flex, Box, useBreakpointValue, useDisclosure, } from '@chakra-ui/react';
import { Flex, Box, useBreakpointValue } from '@chakra-ui/react';
import LeftSideBar from './SideBar/LeftSideBar';
import RightSideBar from './SideBar/RightSideBar';
import MobileDrawer from "../misc/MobileDrawer";
Expand Down
1 change: 0 additions & 1 deletion tracknow/web/src/components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
MenuItem,
MenuList,
IconButton,
useDisclosure
} from "@chakra-ui/react";
import { AddIcon } from '@chakra-ui/icons';
import { FiMenu } from "react-icons/fi";
Expand Down
2 changes: 1 addition & 1 deletion tracknow/web/src/components/Post/Post.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Box, Flex, Text, Stack, Icon, HStack, Center, Link } from "@chakra-ui/react";
import { Box, Flex, Text, Stack, Icon, HStack, Link } from "@chakra-ui/react";
import { GetUserLaptimesResponse } from "../../Types";
import { RiComputerLine, RiMapPinLine, RiTimerFlashLine } from "react-icons/ri";
import { FaCar } from "react-icons/fa";
Expand Down
2 changes: 1 addition & 1 deletion tracknow/web/src/components/SideBar/LeftSideBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Center, Divider, Flex, FlexProps, Icon, Link, Stack, Text } from '@chakra-ui/react';
import { Box, Center, Flex, FlexProps, Icon, Link, Stack } from '@chakra-ui/react';
import { FiHome, FiAward, FiGlobe, FiInfo, FiSettings, FiDollarSign, FiCalendar } from 'react-icons/fi';
import { IconType } from 'react-icons';
import { Link as ReactRouterLink } from 'react-router-dom';
Expand Down
3 changes: 1 addition & 2 deletions tracknow/web/src/components/SideBar/RightSideBar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from "react";
import {
Box, Heading, List, ListItem,
Text, Divider, Image, Stack, Flex, Center,
Box, Heading, Text, Divider, Image, Flex, Center,
Accordion, AccordionButton, AccordionIcon,
AccordionItem,
AccordionPanel,
Expand Down
3 changes: 1 addition & 2 deletions tracknow/web/src/components/User/UserAccountSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from "react";

import { Box, Button, Card, CardBody, CardHeader, useToast, Flex, FormControl, Heading, Stack, Avatar, FormErrorMessage, InputRightElement, InputGroup, Center, Input, useDisclosure, useBreakpointValue } from "@chakra-ui/react";
import { Box, Button, Card, CardBody, CardHeader, useToast, Flex, FormControl, Heading, Stack, Avatar, FormErrorMessage, InputRightElement, InputGroup, Center, Input, } from "@chakra-ui/react";
import { CountryDropdown } from "../../misc/dropDown";
import { useNavigate, Link as ReactRouterLink } from "react-router-dom";
import { useUsers } from "../../hooks/useUsers";
Expand Down
7 changes: 1 addition & 6 deletions tracknow/web/src/components/User/UserLaptimes.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
import { HomePost } from "../Post/Post";
import { useLaptimes } from "../../hooks/useLaptimes";
//import { useNavigate } from "react-router-dom";
//import { LoadingSpinner } from "../Loading/LoadingSpinner";
import { Center, Text, useDisclosure, } from "@chakra-ui/react";
import { useUsers } from "../../hooks/useUsers";
import { LoadingSpinner } from "../Loading/LoadingSpinner";
import { UserProfile } from "./UserProfile";

const UserLaptimes = () => {

const { username, profilePic, loading, userId } = useUsers();

const { isOpen, onOpen, onClose } = useDisclosure();
const { loading, userId } = useUsers();

//const [loading, setLoading] = React.useState(false)

Expand Down

0 comments on commit a1a5e3a

Please sign in to comment.