diff --git a/apps/web/src/components/Shared/Markup/index.tsx b/apps/web/src/components/Shared/Markup/index.tsx index 52607aa7013e..562b57216c10 100644 --- a/apps/web/src/components/Shared/Markup/index.tsx +++ b/apps/web/src/components/Shared/Markup/index.tsx @@ -1,6 +1,6 @@ import { Regex } from "@hey/data/regex"; import trimify from "@hey/helpers/trimify"; -import type { AccountMention } from "@hey/indexer"; +import type { PostMention } from "@hey/indexer"; import type { FC } from "react"; import ReactMarkdown from "react-markdown"; import remarkBreaks from "remark-breaks"; @@ -22,7 +22,7 @@ const plugins = [ interface MarkupProps { children: string; className?: string; - mentions?: AccountMention[]; + mentions?: PostMention[]; } const Markup: FC = ({ diff --git a/packages/helpers/getMentions.ts b/packages/helpers/getMentions.ts index 5b98d09eca8a..fd52d2aba412 100644 --- a/packages/helpers/getMentions.ts +++ b/packages/helpers/getMentions.ts @@ -1,7 +1,7 @@ import { Regex } from "@hey/data/regex"; -import type { AccountMention } from "@hey/indexer"; +import type { AccountMention, PostMention } from "@hey/indexer"; -const getMentions = (text: string): [] | AccountMention[] => { +const getMentions = (text: string): [] | PostMention[] => { if (!text) { return []; } diff --git a/packages/types/misc.d.ts b/packages/types/misc.d.ts index 6523572e28f7..2ecde6e047b0 100644 --- a/packages/types/misc.d.ts +++ b/packages/types/misc.d.ts @@ -1,4 +1,4 @@ -import type { AccountMention, Maybe, MetadataLicenseType } from "@hey/indexer"; +import type { Maybe, MetadataLicenseType, PostMention } from "@hey/indexer"; import type { OptmisticTransactionType } from "./enums"; export interface StorageNodeResponse { @@ -48,7 +48,7 @@ export interface OptimisticTransaction { } export interface MarkupLinkProps { - mentions?: AccountMention[]; + mentions?: PostMention[]; title?: string; }