From 68ccac9ae244c6159a88b06e463ecf7ffe56d080 Mon Sep 17 00:00:00 2001 From: Yann Bizeul Date: Tue, 8 Oct 2024 08:54:36 +0200 Subject: [PATCH] clean imports --- .../YBFeed/Components/YBNotificationToggleComponent.tsx | 2 +- web/ui/src/YBFeed/Components/YBPasteCardComponent.tsx | 8 ++------ web/ui/src/YBFeed/YBFeedFeed.tsx | 4 ++-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/web/ui/src/YBFeed/Components/YBNotificationToggleComponent.tsx b/web/ui/src/YBFeed/Components/YBNotificationToggleComponent.tsx index 06be260..1dbfd53 100644 --- a/web/ui/src/YBFeed/Components/YBNotificationToggleComponent.tsx +++ b/web/ui/src/YBFeed/Components/YBNotificationToggleComponent.tsx @@ -1,4 +1,4 @@ -import { useState, useEffect, useMemo, useRef } from 'react' +import { useState, useEffect } from 'react' import { ActionIcon } from '@mantine/core'; import { IconBell } from '@tabler/icons-react'; diff --git a/web/ui/src/YBFeed/Components/YBPasteCardComponent.tsx b/web/ui/src/YBFeed/Components/YBPasteCardComponent.tsx index 8eed942..58727a9 100644 --- a/web/ui/src/YBFeed/Components/YBPasteCardComponent.tsx +++ b/web/ui/src/YBFeed/Components/YBPasteCardComponent.tsx @@ -2,7 +2,7 @@ import { useState,useEffect } from 'react' import { redirect, useParams } from 'react-router-dom' -import { Textarea, Center, Text } from '@mantine/core'; +import { Textarea, Center } from '@mantine/core'; import { Dropzone } from '@mantine/dropzone'; // import { useForm } from '@mantine/form'; @@ -10,11 +10,7 @@ import './YBPasteCardComponent.css' import { PasteToFeed } from '../../paste'; import { Y } from '../../YBFeedClient'; -interface YBPasteCardComponentProps { - onPaste?: () => void -} - -export function YBPasteCardComponent(props:YBPasteCardComponentProps) { +export function YBPasteCardComponent() { const [isMobile, setIsMobile] = useState(false) const {feedName} = useParams() diff --git a/web/ui/src/YBFeed/YBFeedFeed.tsx b/web/ui/src/YBFeed/YBFeedFeed.tsx index 6e1ede3..f3f787c 100644 --- a/web/ui/src/YBFeed/YBFeedFeed.tsx +++ b/web/ui/src/YBFeed/YBFeedFeed.tsx @@ -1,4 +1,4 @@ -import { useEffect, useState, useMemo, useRef } from "react" +import { useEffect, useState, useMemo } from "react" import { useParams, useSearchParams, redirect } from 'react-router-dom'; @@ -6,7 +6,7 @@ import { notifications } from '@mantine/notifications'; import { Menu, ActionIcon, Center, Group, rem, Button, Box} from '@mantine/core'; -import { YBFeed, YBFeedConnector, YBFeedItem } from '.' +import { YBFeedConnector } from '.' import { YBBreadCrumbComponent, YBPasteCardComponent, YBFeedItemsComponent, YBNotificationToggleComponent } from './Components' import { defaultNotificationProps } from './config';