diff --git a/src/components/Create/components/pages/ReviewDeploy/components/ProjectDetailsReview/ProjectDetailsReview.tsx b/src/components/Create/components/pages/ReviewDeploy/components/ProjectDetailsReview/ProjectDetailsReview.tsx index abdde508d9..da55e4a724 100644 --- a/src/components/Create/components/pages/ReviewDeploy/components/ProjectDetailsReview/ProjectDetailsReview.tsx +++ b/src/components/Create/components/pages/ReviewDeploy/components/ProjectDetailsReview/ProjectDetailsReview.tsx @@ -1,14 +1,16 @@ -import { t } from '@lingui/macro' +import { Trans, t } from '@lingui/macro' import EthereumAddress from 'components/EthereumAddress' import ProjectLogo from 'components/ProjectLogo' import { ProjectTagsList } from 'components/ProjectTags/ProjectTagsList' import { RichPreview } from 'components/RichPreview' +import { useWallet } from 'hooks/Wallet' import { useMemo } from 'react' import { useAppSelector } from 'redux/hooks/useAppSelector' import { wrapNonAnchorsInAnchor } from 'utils/wrapNonAnchorsInAnchor' import { ReviewDescription } from '../ReviewDescription' export const ProjectDetailsReview = () => { + const { userAddress } = useWallet() const { projectMetadata: { description, @@ -25,6 +27,8 @@ export const ProjectDetailsReview = () => { inputProjectOwner, } = useAppSelector(state => state.editingV2Project) + const ownerAddress = inputProjectOwner ?? userAddress + const wrappedDescription = useMemo(() => { if (!description) return undefined return wrapNonAnchorsInAnchor(description) @@ -123,7 +127,13 @@ export const ProjectDetailsReview = () => { {/* END: Bottom */} } + desc={ + ownerAddress ? ( + + ) : ( + Wallet not connected + ) + } /> ) diff --git a/src/locales/messages.pot b/src/locales/messages.pot index 9c8686504c..6effb50111 100644 --- a/src/locales/messages.pot +++ b/src/locales/messages.pot @@ -14,6 +14,9 @@ msgstr "" msgid "Extensible" msgstr "" +msgid "Wallet not connected" +msgstr "" + msgid "Projects using a reserved rate of {reservedRateRiskyMin}% or more will appear risky to contributors, as a relatively small number of tokens will be received in exchange for paying your project." msgstr ""