Skip to content

Commit

Permalink
Remove rewards from posts
Browse files Browse the repository at this point in the history
  • Loading branch information
samchuk-vlad committed Jul 4, 2024
1 parent d7a245a commit caef18e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/components/content-staking/SuperLike.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
getAddressLikeCountToPostQuery,
getCanPostSuperLikedQuery,
getConfirmationMsgQuery,
getPostRewardsQuery,
getSuperLikeCountQuery,
getTodaySuperLikeCountQuery,
} from '@/services/datahub/content-staking/query'
Expand All @@ -32,7 +31,6 @@ import {
import { toast } from 'sonner'
import PopOver from '../floating/PopOver'
import { sendEventWithRef } from '../referral/analytics'
import PostRewardStat from './PostRewardStat'

export type SuperLikeProps = ComponentProps<'div'> & {
withPostReward: boolean
Expand All @@ -55,13 +53,13 @@ export function SuperLikeWrapper({
disabledCause: string
superLikeCount: number
handleClick: () => void
postRewards: PostRewards | undefined | null
postRewards?: PostRewards | undefined | null
}) => ReactNode
}) {
const setOpenMessageModal = useMessageData.use.setOpenMessageModal()
const { data: postRewards } = getPostRewardsQuery.useQuery(postId, {
enabled: withPostReward,
})
// const { data: postRewards } = getPostRewardsQuery.useQuery(postId, {
// enabled: withPostReward,
// })

const { isBlocked, isLoading: loadingBlocked } = useIsAddressBlockedInApp()
const { setIsOpen } = useLoginModal()
Expand Down Expand Up @@ -170,7 +168,6 @@ export function SuperLikeWrapper({
handleClick,
hasILiked,
superLikeCount: superLikeCount?.count ?? 0,
postRewards,
})}
</>
)
Expand Down Expand Up @@ -248,14 +245,14 @@ export default function SuperLike({
) : (
button
)}
{postRewards?.isNotZero && (
{/* {postRewards?.isNotZero && (
<PostRewardStat
className={cx(
isMyMessage && 'text-text-muted-on-primary-light'
)}
postId={postId}
/>
)}
)} */}
</div>
)
}}
Expand Down

0 comments on commit caef18e

Please sign in to comment.