diff --git a/src/app/_components/Hero.tsx b/src/app/_components/Hero.tsx
index 6bbe97e5..39123e78 100644
--- a/src/app/_components/Hero.tsx
+++ b/src/app/_components/Hero.tsx
@@ -3,13 +3,13 @@ import Link from "next/link";
import { Button } from "@/common/ui/components";
import useWallet from "@/modules/auth/hooks/useWallet";
import useRegistration from "@/modules/core/hooks/useRegistration";
+import { DonationRandomButton } from "@/modules/donation";
const Hero = () => {
const wallet = useWallet();
const accountId = wallet?.wallet?.accountId || "";
const { registration, loading } = useRegistration(accountId);
-
const isRegisteredProject = !!registration.id;
return (
@@ -23,12 +23,7 @@ const Hero = () => {
participate in funding rounds.
+ has been donated to + + + {recipientAccount.near_social_profile_data?.name ?? + recipientAccount.id} + +
+ )} + + {isLoading ? ( +{contract}
{chain}
diff --git a/src/modules/profile/index.ts b/src/modules/profile/index.ts new file mode 100644 index 00000000..13b0685f --- /dev/null +++ b/src/modules/profile/index.ts @@ -0,0 +1 @@ +export { ProfileLink } from "./components/ProfileLink"; diff --git a/src/modules/project/components/ProjectCard.tsx b/src/modules/project/components/ProjectCard.tsx index d2095f8d..51e6ed56 100644 --- a/src/modules/project/components/ProjectCard.tsx +++ b/src/modules/project/components/ProjectCard.tsx @@ -7,6 +7,7 @@ import { dispatch } from "@/app/_store"; import { PayoutDetailed } from "@/common/contracts/potlock/interfaces/pot.interfaces"; import { _address, yoctosToNear } from "@/common/lib"; import { Button } from "@/common/ui/components"; +import { useDonation } from "@/modules/donation"; import { useProfile } from "@/modules/profile/utils"; import CardSkeleton from "./CardSkeleton"; @@ -25,6 +26,7 @@ export const ProjectCard = ({ payoutDetails?: PayoutDetailed; }) => { const allowDonate = _allowDonate === undefined ? true : _allowDonate; + const { openDonationModal } = useDonation({ accountId: projectId }); const { socialData, socialImages, tags, totalAmountNear } = useProfile(projectId); @@ -140,10 +142,7 @@ export const ProjectCard = ({