From 827b14cae4762c32cbeb891fc54be84b529701a6 Mon Sep 17 00:00:00 2001 From: Daniel Mata <100956688+matadaniel@users.noreply.github.com> Date: Fri, 6 Jan 2023 21:01:18 -0600 Subject: [PATCH 1/2] fix netlify-honeypot attribute --- src/components/FeedbackForm.astro | 106 +++++++++++++++--------------- 1 file changed, 54 insertions(+), 52 deletions(-) diff --git a/src/components/FeedbackForm.astro b/src/components/FeedbackForm.astro index 803c196..0a2803b 100644 --- a/src/components/FeedbackForm.astro +++ b/src/components/FeedbackForm.astro @@ -1,59 +1,61 @@ --- --- -

Here's an example of a Netlify Form! When you fill this out, the submissions can be found in the Netlify Admin site.

-
-
- - - - - - - - - -
-
+

+ Here's an example of a Netlify Form! When you fill this out, the submissions + can be found in the Netlify Admin site. +

+
+
+ + + + + + + + + +
+
- From a2ccf9fa7ddaff572510754739243cbe08ef2419 Mon Sep 17 00:00:00 2001 From: Daniel Mata <100956688+matadaniel@users.noreply.github.com> Date: Fri, 6 Jan 2023 21:05:42 -0600 Subject: [PATCH 2/2] create custom-attributes.d.ts extend the default JSX definitions to add non-standard attributes --- src/custom-attributes.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/custom-attributes.d.ts diff --git a/src/custom-attributes.d.ts b/src/custom-attributes.d.ts new file mode 100644 index 0000000..2868ceb --- /dev/null +++ b/src/custom-attributes.d.ts @@ -0,0 +1,6 @@ +declare namespace astroHTML.JSX { + interface HTMLAttributes { + netlify?: true; + 'netlify-honeypot'?: string; + } +}