Skip to content

Commit

Permalink
Removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ybizeul committed Oct 6, 2024
1 parent 8cac6ea commit 3cf70cf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion web/ui/src/YBFeed/Components/YBFeedItemComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { YBFeedItemTextComponent, YBFeedItemImageComponent, copyImageItem, FeedI
import { YBFeedConnector, YBFeedItem } from '../'

import { defaultNotificationProps } from '../config';
import { YBFeedItemBinaryComponent } from './YBFeedItemBinaryComponent';

//const connection = new YBFeedConnector()

Expand Down
2 changes: 0 additions & 2 deletions web/ui/src/YBFeed/YBFeedApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { AppShell, Container } from "@mantine/core"

import {
BrowserRouter,
createBrowserRouter,
Route,
RouterProvider,
Routes,
} from "react-router-dom";

Expand Down
4 changes: 2 additions & 2 deletions web/ui/src/YBFeed/YBFeedConnector.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AxiosResponse, AxiosResponseHeaders } from 'axios'
import { AxiosResponseHeaders } from 'axios'
import { YBFeed, YBFeedItem, YBFeedError } from '.'
import { Y } from '../YBFeedClient'

Expand Down Expand Up @@ -229,7 +229,7 @@ export class YBFeedConnector {
async AddSubscription(feedName: string, subscription: any): Promise<boolean> {
return new Promise((resolve, reject) => {
Y.post('/feeds/' + encodeURIComponent(feedName) + "/subscription", subscription)
.then((f) => {
.then(() => {
resolve(true)
})
.catch((error) => {
Expand Down
6 changes: 3 additions & 3 deletions web/ui/src/YBFeed/YBFeedFeed.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { useEffect, useState, useMemo, useRef } from "react"

import { useParams, useSearchParams, Navigate, redirect } from 'react-router-dom';
import { useParams, useSearchParams, redirect } from 'react-router-dom';

import { notifications } from '@mantine/notifications';

import { Menu, ActionIcon, PinInput, Text, Modal, Center, Group, rem, Button, Box} from '@mantine/core';
import { Menu, ActionIcon, Center, Group, rem, Button, Box} from '@mantine/core';

import { YBFeed, YBFeedConnector, YBFeedItem } from '.'

import { YBBreadCrumbComponent, YBPasteCardComponent, YBFeedItemsComponent, YBNotificationToggleComponent, YBFeedItemComponent } from './Components'
import { YBBreadCrumbComponent, YBPasteCardComponent, YBFeedItemsComponent, YBNotificationToggleComponent } from './Components'
import { defaultNotificationProps } from './config';

import {
Expand Down

0 comments on commit 3cf70cf

Please sign in to comment.