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 7, 2024
1 parent bc945e3 commit 745342b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
12 changes: 9 additions & 3 deletions apps/web/src/components/Post/OpenAction/CollectModule/Splits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import formatAddress from "@hey/helpers/formatAddress";
import getAccount from "@hey/helpers/getAccount";
import getAvatar from "@hey/helpers/getAvatar";
import getStampFyiURL from "@hey/helpers/getStampFyiURL";
import { useAccountsQuery, type Account } from "@hey/indexer";
import {
type Account,
type RecipientDataOutput,
useAccountsQuery
} from "@hey/indexer";
import { Image } from "@hey/ui";
import Link from "next/link";
import type { FC } from "react";
Expand Down Expand Up @@ -77,8 +81,10 @@ const Splits: FC<SplitsProps> = ({ recipients }) => {
src={account ? getAvatar(account) : getStampFyiURL(address)}
/>
{account ? (
<Link href={getAccount(account).link}>
<Slug slug={getAccount(account).slugWithPrefix} />
<Link href={getAccount(account as Account).link}>
<Slug
slug={getAccount(account as Account).slugWithPrefix}
/>
</Link>
) : (
<Link
Expand Down
9 changes: 7 additions & 2 deletions packages/helpers/getCollectModuleData.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import type {
RecipientDataOutput,
SimpleCollectActionSettings
} from "@hey/indexer";

const getCollectModuleData = (
collectModule:
| MultirecipientFeeCollectOpenActionSettings
| SimpleCollectOpenActionSettings
| MultirecipientFeeCollectActionSettings
| SimpleCollectActionSettings
): {
amount?: number;
assetAddress?: string;
Expand Down

0 comments on commit 745342b

Please sign in to comment.