diff --git a/src/components/ProjectDashboard/ProjectDashboard.tsx b/src/components/ProjectDashboard/ProjectDashboard.tsx index 00ccf60e62..8fb88dd21b 100644 --- a/src/components/ProjectDashboard/ProjectDashboard.tsx +++ b/src/components/ProjectDashboard/ProjectDashboard.tsx @@ -2,6 +2,7 @@ import { Footer } from 'components/Footer' import { TransactionProvider } from 'contexts/Transaction/TransactionProvider' import { useHasNftRewards } from 'hooks/JB721Delegate/useHasNftRewards' import { twMerge } from 'tailwind-merge' +import { BlockedProjectBanner } from './components/BlockedProjectBanner' import { Cart } from './components/Cart' import { CoverPhoto } from './components/CoverPhoto' import { CurrentBalanceCard } from './components/CurrentBalanceCard' @@ -34,6 +35,7 @@ export const ProjectDashboard = () => {
+
Delisted project} + body={ + + This project has been delisted for breaching our{' '} + policy.{' '} + Get in touch. + + } + variant="warning" + /> + ) +} diff --git a/src/components/ProjectDashboard/components/PayProjectCard/PayProjectCard.tsx b/src/components/ProjectDashboard/components/PayProjectCard/PayProjectCard.tsx index 0ad6cb0d1f..55f251bd05 100644 --- a/src/components/ProjectDashboard/components/PayProjectCard/PayProjectCard.tsx +++ b/src/components/ProjectDashboard/components/PayProjectCard/PayProjectCard.tsx @@ -6,6 +6,7 @@ import { Trans, t } from '@lingui/macro' import { Button, Tooltip } from 'antd' import { usePayProjectCard } from 'components/ProjectDashboard/hooks' import { Formik } from 'formik' +import { useBlockedProject } from 'hooks/useBlockedProject' import { V2V3CurrencyOption } from 'models/v2v3/currencyOption' import { twMerge } from 'tailwind-merge' import { V2V3_CURRENCY_ETH } from 'utils/v2v3/currency' @@ -14,6 +15,8 @@ import { PayInput } from './components/PayInput' import { TokensPerEth } from './components/TokensPerEth' export const PayProjectCard = ({ className }: { className?: string }) => { + const isBlockedProject = useBlockedProject() + const { validationSchema, paymentsPaused, addPay } = usePayProjectCard() const determiningIfProjectCanReceivePayments = paymentsPaused === undefined @@ -74,7 +77,7 @@ export const PayProjectCard = ({ className }: { className?: string }) => { >