diff --git a/public/images/muro_is_lost.svg b/public/images/muro_is_lost.svg index be52b796..f8c57bc0 100644 --- a/public/images/muro_is_lost.svg +++ b/public/images/muro_is_lost.svg @@ -2,18 +2,18 @@ + width="1920" + height="1080" + viewBox="0 0 507.99999 285.75001" + version="1.1" + id="svg5" + sodipodi:docname="muro_is_lost.svg" + inkscape:version="1.2-dev (9ee32be, 2021-06-19)" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns="http://www.w3.org/2000/svg" +> { - const { comments, isLoading, onLoadMoreComments, hasMore, data, mutate, isLoadingMore } = useGetComments( - nodeId, - fallbackData - ); + const { + comments, + isLoading, + onLoadMoreComments, + hasMore, + data, + mutate, + isLoadingMore, + } = useGetComments(nodeId, fallbackData); const onDelete = useCallback( async (id: IComment['id'], isLocked: boolean) => { diff --git a/src/hooks/notes/useGetNotes.ts b/src/hooks/notes/useGetNotes.ts index 2ff6cf73..072ba34f 100644 --- a/src/hooks/notes/useGetNotes.ts +++ b/src/hooks/notes/useGetNotes.ts @@ -1,13 +1,10 @@ import { useCallback, useMemo } from 'react'; import useSWRInfinite, { SWRInfiniteKeyLoader } from 'swr/infinite'; - -import { getLabNodes } from '~/api/lab'; import { apiGetNotes } from '~/api/notes'; import { ApiGetNotesRequest } from '~/api/notes/types'; import { useAuth } from '~/hooks/auth/useAuth'; -import { useUser } from '~/hooks/auth/useUser'; -import { GetLabNodesRequest, ILabNode, LabNodesSort } from '~/types/lab'; +import { GetLabNodesRequest, ILabNode } from '~/types/lab'; import { flatten, uniqBy } from '~/utils/ramda'; const DEFAULT_COUNT = 20; diff --git a/src/layouts/LabLayout/index.tsx b/src/layouts/LabLayout/index.tsx index 939529fa..bc9729dd 100644 --- a/src/layouts/LabLayout/index.tsx +++ b/src/layouts/LabLayout/index.tsx @@ -1,6 +1,4 @@ import React, { FC } from 'react'; - -import { Superpower } from '~/components/boris/Superpower'; import { Group } from '~/components/containers/Group'; import { Sticky } from '~/components/containers/Sticky'; import { LabHead } from '~/components/lab/LabHead'; diff --git a/src/types/lab/index.ts b/src/types/lab/index.ts index 9d120d66..f4f3653c 100644 --- a/src/types/lab/index.ts +++ b/src/types/lab/index.ts @@ -1,4 +1,4 @@ -import { IError, INode, ITag } from '~/types'; +import { INode, ITag } from '~/types'; export enum LabNodesSort { New = 'new',