diff --git a/alem.config.json b/alem.config.json index a8c05397..68df25b1 100644 --- a/alem.config.json +++ b/alem.config.json @@ -31,6 +31,7 @@ } }, "options": { + "ejectStatefulComponents": false, "keepRoute": false, "createLoaderWidget": true, "loadingComponentFile": "src/components/SuspenseLoading.tsx", diff --git a/src/components/Card/ButtonDonation.tsx b/src/components/Card/ButtonDonation.tsx index aae5ab5d..7ae2aa58 100644 --- a/src/components/Card/ButtonDonation.tsx +++ b/src/components/Card/ButtonDonation.tsx @@ -1,12 +1,10 @@ -import { context, useEffect } from "alem"; +import { context } from "alem"; import { useDonationModal } from "@app/hooks/useDonationModal"; -import useModals from "@app/hooks/useModals"; import Button from "../Button"; const ButtonDonation = ({ allowDonate, projectId }: { allowDonate: boolean; projectId: string }) => { - const Modals = useModals(); const { setDonationModalProps } = useDonationModal(); - useEffect(() => {}, []); // make the component statefull so it does not break + return (
e.preventDefault()} @@ -15,7 +13,7 @@ const ButtonDonation = ({ allowDonate, projectId }: { allowDonate: boolean; proj color: "#292929", }} > - + {/* */} {allowDonate && context.accountId && (