diff --git a/components/Sections/SafeTerms.jsx b/components/Sections/SafeTerms.jsx index d18cdbf..eea1137 100644 --- a/components/Sections/SafeTerms.jsx +++ b/components/Sections/SafeTerms.jsx @@ -1,5 +1,5 @@ import { useState } from "react"; - +import { signIn } from "next-auth/react"; import Modal from "../Modal"; import SafeNote from "../SafeNote"; @@ -9,9 +9,22 @@ export default function SafeTerms({ description, safeNoteContent, cta, + session, }) { const [isClicked, setIsClicked] = useState(true); const [safeType, setSafeType] = useState(null); + if (!session) { + return ( +
+ +
+ ); + } return (
@@ -31,14 +32,16 @@ export default function WhyInvest({ })} -
- - {cta} - -
+ {!session ? null : ( +
+ + {cta} + +
+ )}
diff --git a/components/WhyInvestHero.jsx b/components/WhyInvestHero.jsx index 4626d5a..3a755ee 100644 --- a/components/WhyInvestHero.jsx +++ b/components/WhyInvestHero.jsx @@ -1,4 +1,4 @@ -export default function WhyInvestHero({ subTitle, title, description, cta }) { +export default function WhyInvestHero({ subTitle, title, description }) { return (
diff --git a/pages/index.jsx b/pages/index.jsx index 40a08ea..e70792c 100644 --- a/pages/index.jsx +++ b/pages/index.jsx @@ -167,17 +167,8 @@ export default function Funded() { setMobileMenuIsClicked={setMobileMenuIsClicked} /> - - {!session ? ( - - ) : ( - - )} + + {!session ? null : ( <>