diff --git a/src/components/boards/BoardBottomBar.tsx b/src/components/boards/BoardBottomBar.tsx index d2369339..141f2972 100644 --- a/src/components/boards/BoardBottomBar.tsx +++ b/src/components/boards/BoardBottomBar.tsx @@ -1,6 +1,6 @@ import { BoardMetadata, RealmPermissions } from "types/Types"; import { BoardOptions, useBoardOptions } from "../hooks/useBoardOptions"; -import { BoardPageDetails, usePageDetails } from "utils/router-utils"; +import { BoardPageDetails, usePageDetails } from "lib/router"; import { EditorActions, useEditorsDispatch, diff --git a/src/components/core/editors/withEditors.tsx b/src/components/core/editors/withEditors.tsx index c1524d9b..2eadb6b4 100644 --- a/src/components/core/editors/withEditors.tsx +++ b/src/components/core/editors/withEditors.tsx @@ -22,7 +22,7 @@ import { addCommentInCache } from "lib/api/cache/comment"; import debug from "debug"; import { useAuth } from "components/Auth"; import { useCachedLinks } from "components/hooks/useCachedLinks"; -import { usePageDetails } from "utils/router-utils"; +import { usePageDetails } from "lib/router"; import { usePreventPageChange } from "components/hooks/usePreventPageChange"; import { useQueryClient } from "react-query"; import { useRefetchBoardActivity } from "lib/api/hooks/board-feed"; diff --git a/src/components/core/feeds/FilterableContext.tsx b/src/components/core/feeds/FilterableContext.tsx index 7e6f36c6..0cf4001d 100644 --- a/src/components/core/feeds/FilterableContext.tsx +++ b/src/components/core/feeds/FilterableContext.tsx @@ -1,7 +1,7 @@ import { ArrayParam } from "use-query-params"; import React from "react"; // import debug from "debug"; -import { isNotNull } from "utils/typescript-utils"; +import { isNotNull } from "lib/typescript"; import { useQueryParams } from "use-query-params"; //const log = debug("bobafrontend:contexts:RealmContext-log"); diff --git a/src/components/core/feeds/ThreadPreview.tsx b/src/components/core/feeds/ThreadPreview.tsx index c10e5d39..be894986 100644 --- a/src/components/core/feeds/ThreadPreview.tsx +++ b/src/components/core/feeds/ThreadPreview.tsx @@ -1,10 +1,13 @@ -import { Post, PostHandler, TagType, TagsType, HiddenThread } from "@bobaboard/ui-components"; +import { + HiddenThread, + Post, + PostHandler, + TagType, + TagsType, +} from "@bobaboard/ui-components"; import { PostData, ThreadSummaryType } from "types/Types"; import { PostOptions, usePostOptions } from "components/options/usePostOptions"; -import { - addThreadHandlerRef, - removeThreadHandlerRef, -} from "utils/scroll-utils"; +import { addThreadHandlerRef, removeThreadHandlerRef } from "lib/scroll"; import React from "react"; import { THREAD_VIEW_OPTIONS } from "components/core/editors/utils"; @@ -105,11 +108,14 @@ const ThreadPreview: React.FC<{ // If the thread is hidden, use a special placeholder to represent it. if (thread.hidden) { - return