Skip to content

Commit

Permalink
Migrate to Lens v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Dec 21, 2024
1 parent c98f6d5 commit 9552f1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/components/Shared/Markup/index.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -22,7 +22,7 @@ const plugins = [
interface MarkupProps {
children: string;
className?: string;
mentions?: AccountMention[];
mentions?: PostMention[];
}

const Markup: FC<MarkupProps> = ({
Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/getMentions.ts
Original file line number Diff line number Diff line change
@@ -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 [];
}
Expand Down
4 changes: 2 additions & 2 deletions packages/types/misc.d.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -48,7 +48,7 @@ export interface OptimisticTransaction {
}

export interface MarkupLinkProps {
mentions?: AccountMention[];
mentions?: PostMention[];
title?: string;
}

Expand Down

0 comments on commit 9552f1b

Please sign in to comment.