Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 1b25271

Browse files
committed
Remove unused imports
1 parent 3c15c7c commit 1b25271

File tree

8 files changed

+34
-64
lines changed

8 files changed

+34
-64
lines changed

frontend/src/Components/Footer/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { ReactNode } from 'react';
21
import {
32
Box,
3+
ButtonGroup,
4+
Flex,
5+
Image,
46
Link,
57
SimpleGrid,
68
Stack,
79
Text,
8-
Flex,
9-
Image,
1010
useColorMode,
11-
ButtonGroup,
1211
} from '@chakra-ui/react';
13-
import { FaTwitter, FaDiscord, FaGithub } from 'react-icons/fa';
12+
import { ReactNode } from 'react';
13+
import { FaDiscord, FaGithub, FaTwitter } from 'react-icons/fa';
1414

1515
const ListHeader = ({ children }: { children: ReactNode }) => {
1616
return (

frontend/src/Components/Header/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
import React, { ReactNode, useState } from 'react';
21
import {
3-
Link,
42
Box,
53
Flex,
6-
Text,
7-
Switch,
4+
HStack,
85
Image,
6+
Link,
97
Stack,
8+
Switch,
9+
Text,
1010
useColorMode,
11-
HStack,
12-
BoxProps,
1311
} from '@chakra-ui/react';
12+
import React, { ReactNode, useState } from 'react';
1413

1514
const NavBar = () => {
1615
const [isOpen, setIsOpen] = useState<boolean>(false);

frontend/src/Components/Intro/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import {
22
Box,
3-
Flex,
4-
Text,
53
Button,
6-
Image,
4+
Flex,
75
Grid,
86
GridItem,
9-
useBreakpointValue,
7+
Image,
8+
Text,
109
} from '@chakra-ui/react';
11-
import { BsFillLightningChargeFill } from 'react-icons/bs';
12-
import { FaDiscord } from 'react-icons/fa';
1310
import '@fontsource/inter/500.css';
1411
import '@fontsource/inter/700.css';
1512
import '@fontsource/inter/800.css';
13+
import { BsFillLightningChargeFill } from 'react-icons/bs';
14+
import { FaDiscord } from 'react-icons/fa';
1615

1716
const codeLaunched = false;
1817

frontend/src/Components/Values/index.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import {
2-
Flex,
32
Box,
3+
Flex,
44
Heading,
5-
Text,
6-
OrderedList,
7-
ListItem,
5+
Icon,
86
LinkBox,
97
LinkOverlay,
10-
Icon,
11-
useColorModeValue,
8+
ListItem,
9+
OrderedList,
10+
Text,
1211
useBreakpointValue,
12+
useColorModeValue,
1313
} from '@chakra-ui/react';
1414
import { useTranslation } from 'react-i18next';
15-
import { DEVELOPER_DAO_WIKI } from '../../utils/DeveloperDaoConstants';
1615
import { BsArrowUpRight } from 'react-icons/bs';
16+
import { DEVELOPER_DAO_WIKI } from '../../utils/DeveloperDaoConstants';
1717

1818
const Values = () => {
1919
const isMobile = useBreakpointValue({ base: true, lg: false });

frontend/src/layout/Page/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React from 'react';
21
import { Box, Flex, Image, Stack, Text, useColorMode } from '@chakra-ui/react';
3-
import Header from '../../Components/Header';
2+
import React from 'react';
43
import Marquee from 'react-fast-marquee';
4+
import Header from '../../Components/Header';
55

66
function Page({ children }: { children?: object }) {
77
const { colorMode } = useColorMode();

frontend/src/pages/_app.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
import React, { ReactNode } from 'react';
2-
import Head from 'next/head';
3-
import { appWithTranslation } from 'next-i18next';
41
import { ChakraProvider } from '@chakra-ui/react';
5-
import { useTranslation } from 'next-i18next';
62
import '@fontsource/inter/variable-full.css';
73
import '@fontsource/source-code-pro/400.css';
84
import '@fontsource/source-code-pro/600.css';
5+
import { appWithTranslation, useTranslation } from 'next-i18next';
6+
import PlausibleProvider from 'next-plausible';
97
import { AppProps } from 'next/app';
8+
import Head from 'next/head';
9+
import React, { ReactNode } from 'react';
10+
import Page from '../layout/Page';
1011
import '../styles/globals.css';
11-
12-
import { DEVELOPER_DAO_WEBSITE } from '../utils/DeveloperDaoConstants';
1312
import { theme } from '../theme';
14-
import PlausibleProvider from 'next-plausible';
15-
import Page from '../layout/Page';
13+
import { DEVELOPER_DAO_WEBSITE } from '../utils/DeveloperDaoConstants';
1614

1715
const socialBanner = `${DEVELOPER_DAO_WEBSITE}/social-banner.png`;
1816

frontend/src/pages/index.tsx

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,11 @@
1-
import {
2-
Box,
3-
Button,
4-
Container,
5-
Divider,
6-
Flex,
7-
Heading,
8-
HStack,
9-
Icon,
10-
IconButton,
11-
ListItem,
12-
Stack,
13-
StackDivider,
14-
Text,
15-
UnorderedList,
16-
useBreakpointValue,
17-
useColorMode,
18-
VisuallyHidden,
19-
VStack,
20-
} from '@chakra-ui/react';
1+
import { Divider, useColorMode, VStack } from '@chakra-ui/react';
212
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
22-
import { ReactElement } from 'react';
23-
import { BsLightningCharge } from 'react-icons/bs';
24-
import { FaDiscord, FaGithub, FaTwitter } from 'react-icons/fa';
25-
import { GiCrownedHeart } from 'react-icons/gi';
26-
import Image from 'next/image';
27-
import { useTranslation } from 'react-i18next';
3+
import Footer from '../Components/Footer';
284
import IntroComponent from '../Components/Intro';
29-
import Values from '../Components/Values';
305
import Partners from '../Components/Partners';
31-
import Footer from '../Components/Footer';
6+
import Values from '../Components/Values';
327

338
export default function IndexPage() {
34-
const { t } = useTranslation();
359
const { colorMode } = useColorMode();
3610

3711
return (

frontend/src/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { extendTheme, ThemeConfig } from '@chakra-ui/react';
1+
import { extendTheme } from '@chakra-ui/react';
22
import { mode } from '@chakra-ui/theme-tools';
33

44
export const theme = extendTheme({

0 commit comments

Comments
 (0)