hide house liquidity on feed
This commit is contained in:
parent
e7d8cfe7e0
commit
273b815e54
|
@ -9,13 +9,17 @@ import { RelativeTimestamp } from 'web/components/relative-timestamp'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { LiquidityProvision } from 'common/liquidity-provision'
|
import { LiquidityProvision } from 'common/liquidity-provision'
|
||||||
import { UserLink } from 'web/components/user-link'
|
import { UserLink } from 'web/components/user-link'
|
||||||
|
import {
|
||||||
|
DEV_HOUSE_LIQUIDITY_PROVIDER_ID,
|
||||||
|
HOUSE_LIQUIDITY_PROVIDER_ID,
|
||||||
|
} from 'common/antes'
|
||||||
|
|
||||||
export function FeedLiquidity(props: {
|
export function FeedLiquidity(props: {
|
||||||
className?: string
|
className?: string
|
||||||
liquidity: LiquidityProvision
|
liquidity: LiquidityProvision
|
||||||
}) {
|
}) {
|
||||||
const { liquidity } = props
|
const { liquidity } = props
|
||||||
const { userId, createdTime } = liquidity
|
const { userId, createdTime, isAnte } = liquidity
|
||||||
|
|
||||||
const isBeforeJune2022 = dayjs(createdTime).isBefore('2022-06-01')
|
const isBeforeJune2022 = dayjs(createdTime).isBefore('2022-06-01')
|
||||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||||
|
@ -24,6 +28,13 @@ export function FeedLiquidity(props: {
|
||||||
const user = useUser()
|
const user = useUser()
|
||||||
const isSelf = user?.id === userId
|
const isSelf = user?.id === userId
|
||||||
|
|
||||||
|
if (
|
||||||
|
isAnte ||
|
||||||
|
userId === HOUSE_LIQUIDITY_PROVIDER_ID ||
|
||||||
|
userId === DEV_HOUSE_LIQUIDITY_PROVIDER_ID
|
||||||
|
)
|
||||||
|
return <></>
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Row className="flex w-full gap-2 pt-3">
|
<Row className="flex w-full gap-2 pt-3">
|
||||||
{isSelf ? (
|
{isSelf ? (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user