Skip to content

Commit

Permalink
place scorecard form for form detection
Browse files Browse the repository at this point in the history
  • Loading branch information
dpickett committed Oct 27, 2023
1 parent d6c77f3 commit 9a40764
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/scorecard/ScorecardOptInForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getFieldClassName } from "../general/services/getFieldClassName";
import { useNotifications } from "../../hooks/useNotifications";
import "./css/scorecard-form.css";

export const ScorecardOptInForm = () => {
export const ScorecardOptInForm = ({ className = "" }: { className?: string }) => {
const { addNotification } = useNotifications();
const {
handleSubmit,
Expand Down Expand Up @@ -48,7 +48,7 @@ export const ScorecardOptInForm = () => {

const formContent = (
<form
className="scorecard-form__form"
className={`scorecard-form__form ${className}`}
data-netlify="true"
name="scorecardOptIn"
onSubmit={handleSubmit(onSubmit)}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { VisionToReality } from "../components/about-page/VisionToReality";
import { WhySoftwareExists } from "../components/about-page/WhySoftwareExists";
import { Layout } from "../components/layout/Layout";
import { HeadDefaults } from "../components/layout/HeadDefaults";
import { ScorecardOptInForm } from "../components/scorecard/ScorecardOptInForm";

export const Head = () => (
<>
Expand All @@ -36,6 +37,7 @@ const AboutPage = (pageProps: PageProps) => {
<Leaders />
<OurBeliefs />
<VisionToReality />
<ScorecardOptInForm className="hidden" />
</Layout>
);
};
Expand Down

0 comments on commit 9a40764

Please sign in to comment.