diff --git a/components/sections/ReCaptcha/index.js b/components/sections/ReCaptcha/index.js index e2cd6ba..114a0c8 100644 --- a/components/sections/ReCaptcha/index.js +++ b/components/sections/ReCaptcha/index.js @@ -16,6 +16,57 @@ export default () => { }); return (
+ {/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */} + + {/* Below this */} + { > Recaptcha support!
+
+ {/* We save your form easily and securely that no other platform + can */} +
{ browsing experience for all.
+ { return getLS("secret"); diff --git a/pages/dashboard/project/[id]/[formid]/index.js b/pages/dashboard/project/[id]/[formid]/index.js index 025cfa4..3d3aeeb 100644 --- a/pages/dashboard/project/[id]/[formid]/index.js +++ b/pages/dashboard/project/[id]/[formid]/index.js @@ -26,6 +26,12 @@ export default function FormDashboard() { const { formid } = router.query; const { setActive } = useContext(AppbarContext); let { isLoggedIn, user } = useContext(UserContext); + const [form, setForm] = useState(null); + const getFormDashboard = async () => { + const res = await get(`/form/dashboard/${formid}`); + const data = res?.data?.data[0]; + setForm(data); + }; useEffect(() => { if (!isLoggedIn) { setActive({ @@ -43,7 +49,9 @@ export default function FormDashboard() { faq: false, }); }, [user]); - + useEffect(() => { + if (formid) getFormDashboard(); + }, [formid]); return ( <>

- {"Form1"} + {form?.name}

- {"Project1"} + {form?.project?.name}