From c953dff8db616cc7561c5a2ff064dcf6f6579b29 Mon Sep 17 00:00:00 2001 From: Pouria Delfanazari Date: Wed, 20 Dec 2023 12:51:10 -0800 Subject: [PATCH] Fix typo --- src/app/layout.tsx | 2 +- src/app/providers/{compoter.tsx => composer.tsx} | 0 src/components/actions/composeButton/ComposeButton.tsx | 2 +- src/components/actions/composer/Composer.tsx | 2 +- src/components/dataDisplay/postActions/PostActions.tsx | 2 +- src/components/inputs/editor/Editor.tsx | 2 +- src/components/inputs/editor/QuotePreview.tsx | 2 +- src/components/inputs/editor/ReplyToPreview.tsx | 2 +- src/lib/hooks/bsky/feed/usePublishPost.tsx | 2 +- 9 files changed, 8 insertions(+), 8 deletions(-) rename src/app/providers/{compoter.tsx => composer.tsx} (100%) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index de1ba269..6b4413a8 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -6,7 +6,7 @@ import "../styles/globals.css"; import SessionProvider from "./providers/session"; import { getSessionFromServer } from "./api/auth/[...nextauth]/route"; import QueryProvider from "./providers/query"; -import { ComposerProvider } from "./providers/compoter"; +import { ComposerProvider } from "./providers/composer"; import ToastProvider from "./providers/toast"; import { ScrollProvider } from "./providers/scroll"; diff --git a/src/app/providers/compoter.tsx b/src/app/providers/composer.tsx similarity index 100% rename from src/app/providers/compoter.tsx rename to src/app/providers/composer.tsx diff --git a/src/components/actions/composeButton/ComposeButton.tsx b/src/components/actions/composeButton/ComposeButton.tsx index 27dc6bf1..7b2686c2 100644 --- a/src/components/actions/composeButton/ComposeButton.tsx +++ b/src/components/actions/composeButton/ComposeButton.tsx @@ -1,7 +1,7 @@ "use client" import { Icon } from "@iconify/react/dist/iconify.js"; -import { useComposerContext } from "@/app/providers/compoter"; +import { useComposerContext } from "@/app/providers/composer"; import { useScrollContext } from "@/app/providers/scroll"; interface Props { diff --git a/src/components/actions/composer/Composer.tsx b/src/components/actions/composer/Composer.tsx index 311cd583..813cc950 100644 --- a/src/components/actions/composer/Composer.tsx +++ b/src/components/actions/composer/Composer.tsx @@ -1,6 +1,6 @@ "use client"; -import { useComposerContext } from "@/app/providers/compoter"; +import { useComposerContext } from "@/app/providers/composer"; import Editor from "@/components/inputs/editor/Editor"; import { ProfileViewDetailed } from "@atproto/api/dist/client/types/app/bsky/actor/defs"; import * as Dialog from "@radix-ui/react-dialog"; diff --git a/src/components/dataDisplay/postActions/PostActions.tsx b/src/components/dataDisplay/postActions/PostActions.tsx index 25f8f276..6798195d 100644 --- a/src/components/dataDisplay/postActions/PostActions.tsx +++ b/src/components/dataDisplay/postActions/PostActions.tsx @@ -15,7 +15,7 @@ import { useSession } from "next-auth/react"; import Link from "next/link"; import { abbreviateNumber } from "@/lib/utils/number"; import useDeletePost from "@/lib/hooks/bsky/feed/useDeletePost"; -import { useComposerContext } from "@/app/providers/compoter"; +import { useComposerContext } from "@/app/providers/composer"; import toast from "react-hot-toast"; interface Props { diff --git a/src/components/inputs/editor/Editor.tsx b/src/components/inputs/editor/Editor.tsx index 58eaa240..05dc4f3f 100644 --- a/src/components/inputs/editor/Editor.tsx +++ b/src/components/inputs/editor/Editor.tsx @@ -10,7 +10,7 @@ import CharacterCount from "@tiptap/extension-character-count"; import { useState } from "react"; import { CreateMentionSuggestions } from "./CreateMentionSuggestions"; import useSearchUsers from "@/lib/hooks/bsky/actor/useSearchUsers"; -import { ComposerOptions } from "@/app/providers/compoter"; +import { ComposerOptions } from "@/app/providers/composer"; import ReplyToPreview from "./ReplyToPreview"; import QuoteToPreview from "./QuotePreview"; import { getComposerPlaceholder } from "@/lib/utils/text"; diff --git a/src/components/inputs/editor/QuotePreview.tsx b/src/components/inputs/editor/QuotePreview.tsx index a8d2ba36..31f79fd0 100644 --- a/src/components/inputs/editor/QuotePreview.tsx +++ b/src/components/inputs/editor/QuotePreview.tsx @@ -1,5 +1,5 @@ import FallbackAvatar from "@/assets/images/fallbackAvatar.png"; -import { ComposerOptionsQuote } from "@/app/providers/compoter"; +import { ComposerOptionsQuote } from "@/app/providers/composer"; import Image from "next/image"; import { getRelativeTime } from "@/lib/utils/time"; diff --git a/src/components/inputs/editor/ReplyToPreview.tsx b/src/components/inputs/editor/ReplyToPreview.tsx index 497afffd..31670548 100644 --- a/src/components/inputs/editor/ReplyToPreview.tsx +++ b/src/components/inputs/editor/ReplyToPreview.tsx @@ -1,5 +1,5 @@ import FallbackAvatar from "@/assets/images/fallbackAvatar.png"; -import { ComposerOptionsPostRef } from "@/app/providers/compoter"; +import { ComposerOptionsPostRef } from "@/app/providers/composer"; import Image from "next/image"; interface Props { diff --git a/src/lib/hooks/bsky/feed/usePublishPost.tsx b/src/lib/hooks/bsky/feed/usePublishPost.tsx index 4c14f44e..d35654df 100644 --- a/src/lib/hooks/bsky/feed/usePublishPost.tsx +++ b/src/lib/hooks/bsky/feed/usePublishPost.tsx @@ -1,7 +1,7 @@ import { ComposerOptionsPostRef, ComposerOptionsQuote, -} from "@/app/providers/compoter"; +} from "@/app/providers/composer"; import { AppBskyEmbedExternal, AppBskyEmbedImages,