From d261ebec6be2a1bdb83b5156906c1b0bce3ff1c5 Mon Sep 17 00:00:00 2001 From: momodaka <463435681@qq.com> Date: Thu, 9 Nov 2023 00:52:40 +0800 Subject: [PATCH] [fix]: fix eslint warning & remove unused var and unused import --- .gitignore | 4 ++++ components/sections/explore/ProjectSectionCard.tsx | 2 -- components/sections/explore/ProjectsList.tsx | 1 - components/sections/explore/TitleAndSelect.tsx | 2 +- components/sections/home/RoadMapFull.tsx | 6 ------ components/sections/home/Roadmap.tsx | 5 +---- components/sections/home/SHMTokenomics.tsx | 3 +-- components/sections/home/ShardeumInNews.tsx | 1 - pages/404.tsx | 10 ---------- pages/ecosystem/index.tsx | 5 +---- 10 files changed, 8 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index 7dd56d55..81927021 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,8 @@ dist/ *.tsbuildinfo .vercel +# Editor +.idea +.vscode + yarn.lock diff --git a/components/sections/explore/ProjectSectionCard.tsx b/components/sections/explore/ProjectSectionCard.tsx index 8fc06810..7c0833bf 100644 --- a/components/sections/explore/ProjectSectionCard.tsx +++ b/components/sections/explore/ProjectSectionCard.tsx @@ -8,8 +8,6 @@ import { Text, Img, GridItem, - Button, - Tooltip, } from "@chakra-ui/react"; import NextLink from "next/link"; diff --git a/components/sections/explore/ProjectsList.tsx b/components/sections/explore/ProjectsList.tsx index 93cdfda1..cb3cade1 100644 --- a/components/sections/explore/ProjectsList.tsx +++ b/components/sections/explore/ProjectsList.tsx @@ -1,6 +1,5 @@ import { Container, Flex, useBreakpointValue } from "@chakra-ui/react"; import { Project } from "models/project"; -import { totalmem } from "os"; import { FC, useMemo, useState } from "react"; import CategoryList from "./CategoryList"; import { Pagination } from "./Pagination"; diff --git a/components/sections/explore/TitleAndSelect.tsx b/components/sections/explore/TitleAndSelect.tsx index 5633f26f..563709ca 100644 --- a/components/sections/explore/TitleAndSelect.tsx +++ b/components/sections/explore/TitleAndSelect.tsx @@ -1,4 +1,4 @@ -import { Flex, Heading, HStack, LightMode, Select } from "@chakra-ui/react"; +import { Heading, HStack, LightMode, Select } from "@chakra-ui/react"; import { FC } from "react"; export type TitleAndSelectProps = { diff --git a/components/sections/home/RoadMapFull.tsx b/components/sections/home/RoadMapFull.tsx index 7c6a9830..b4a27c00 100644 --- a/components/sections/home/RoadMapFull.tsx +++ b/components/sections/home/RoadMapFull.tsx @@ -3,16 +3,12 @@ import { Box, Container, Flex, - Grid, - Heading, Text, VStack, Button, - Spacer, } from "@chakra-ui/react"; import { useTranslation } from "next-i18next"; import Image from "next/image"; -import { useEffect, useRef } from "react"; import { VerticalTimeline, VerticalTimelineElement } from "react-vertical-timeline-component"; import { CalendarIcon } from "@chakra-ui/icons"; @@ -290,8 +286,6 @@ function RoadmapFull({ heading }: any) { {roadmapList.map((item: any) => { - const percentage = getQuarterProgressInPercentage(item); - const additionaLProps = { "data-scroll-to": percentage > 0 && percentage < 100 }; return ( {roadmapList.map((item: any) => { - const percentage = getQuarterProgressInPercentage(item); - const additionaLProps = { "data-scroll-to": percentage > 0 && percentage < 100 }; return (