Skip to content

Commit

Permalink
fix(Farcaster): resolve circular dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 3, 2024
1 parent 12fcefd commit 22fe4e2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
13 changes: 1 addition & 12 deletions src/requirements/Farcaster/components/FarcasterCast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,7 @@ import {
} from "@phosphor-icons/react"
import { PropsWithChildren } from "react"
import FarcasterCastSmall from "./FarcasterCastSmall"

export type FarcasterCastData = {
hash: string
username: string
display_name: string
profile_pic: string
text: string
timestamp: string
likes: number
recasts: number
replies: number
}
import { FarcasterCastData } from "../types"

const FarcasterCast = ({
cast,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Flex, HStack, Image, Link, Skeleton, Text } from "@chakra-ui/react"
import { Chat, Heart, ShareNetwork, WarningCircle } from "@phosphor-icons/react"
import DataBlock from "components/common/DataBlock"
import { FarcasterCastData } from "./FarcasterCast"
import { FarcasterCastData } from "../types"

const FarcasterCastSmall = ({
cast,
Expand Down
11 changes: 11 additions & 0 deletions src/requirements/Farcaster/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export type FarcasterCastData = {
hash: string
username: string
display_name: string
profile_pic: string
text: string
timestamp: string
likes: number
recasts: number
replies: number
}

0 comments on commit 22fe4e2

Please sign in to comment.