mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-11-26 07:46:06 -05:00
update component prop types to use JSX.IntrinsicElements
This commit is contained in:
@@ -5,16 +5,11 @@ import { Formik, Form, Field } from "formik";
|
||||
import HCaptcha from "@hcaptcha/react-hcaptcha";
|
||||
import Link from "../Link/Link";
|
||||
import { SendIcon, CheckOcticon, XOcticon } from "../Icons";
|
||||
|
||||
import type { FormikHelpers } from "formik";
|
||||
|
||||
import styles from "./ContactForm.module.css";
|
||||
const cx = classNames.bind(styles);
|
||||
|
||||
type Props = {
|
||||
className?: string;
|
||||
};
|
||||
|
||||
type Values = {
|
||||
name: string;
|
||||
email: string;
|
||||
@@ -22,7 +17,11 @@ type Values = {
|
||||
"h-captcha-response": string;
|
||||
};
|
||||
|
||||
const ContactForm = ({ className }: Props) => {
|
||||
type ContactFormProps = {
|
||||
className?: string;
|
||||
};
|
||||
|
||||
const ContactForm = ({ className }: ContactFormProps) => {
|
||||
const { resolvedTheme } = useTheme();
|
||||
|
||||
// status/feedback:
|
||||
|
||||
Reference in New Issue
Block a user