🧹 Removing unused imports (frontend)

🧹 Removing unused imports (frontend)
This commit is contained in:
Montassar Ghanmy
2023-04-13 14:46:01 +01:00
committed by GitHub
parent 01630194fc
commit 1d83a583dc
17 changed files with 11 additions and 50 deletions
@@ -1,11 +1,8 @@
import { InputDecorationIcon } from '@atoms/input/input-decoration-icon';
import { SearchIcon } from '@heroicons/react/solid';
import { Select } from 'app/atoms/input/input-select';
import { Input } from 'app/atoms/input/input-text';
import { Loader } from 'app/atoms/loader';
import Languages from 'app/features/global/services/languages-service';
import useRouterChannel from 'app/features/router/hooks/use-router-channel';
import useRouterWorkspace from 'app/features/router/hooks/use-router-workspace';
import { useSearchChannelsLoading } from 'app/features/search/hooks/use-search-channels';
import {
useSearchMessagesFilesLoading,
@@ -20,8 +17,6 @@ import { useRecoilState } from 'recoil';
export const SearchInput = () => {
const [input, setInput] = useRecoilState(SearchInputState);
const workspaceId = useRouterWorkspace();
const channelId = useRouterChannel();
const inputElement = useRef<HTMLInputElement>(null);
useEffect(() => {
@@ -1,7 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { SearchInputState } from 'app/features/search/state/search-input';
import PerfectScrollbar from 'react-perfect-scrollbar';
import { useRecoilValue } from 'recoil';
import SearchResulsDriveItems from './tabs/drive';
export const SearchResultsIndex = () => {
@@ -18,12 +16,3 @@ export const SearchResultsIndex = () => {
</>
);
};
const SearchCounterBadge = (props: { count: number }) => {
const count = props.count < 100 ? props.count : '99+';
return (
<div className="bg-zinc-200 ml-2 px-1.5 text-sm rounded-full text-zinc-500 dark:bg-zing-800 dark:text-zinc-600">
{count}
</div>
);
};