feat: feed feature, typescript, remove google, fix errs & warns
publish / Build-and-publish (push) Successful in 13m32s

This commit is contained in:
Unknown
2026-07-17 22:22:29 +01:00
parent 2c42ecae5f
commit 8a10d127c1
55 changed files with 1887 additions and 587 deletions
+11 -21
View File
@@ -1,5 +1,5 @@
import { PageProps, Link, graphql } from 'gatsby'
import React, { useState } from 'react'
import { PageProps } from 'gatsby'
import * as React from 'react'
import Layout from '../components/layout'
import Seo from '../components/seo'
@@ -22,25 +22,15 @@ import contactBg from '../images/contact_bg.jpg'
import '../styledComponents/contact.css'
import { NostrController } from '../controllers'
type DataProps = {
site: {
meta: {
title: string
description: string
social: { linkedin: string }
}
}
}
const Contact: React.FC<PageProps<DataProps>> = ({ data, location }) => {
const Contact: React.FC<PageProps<unknown>> = ({ location }) => {
const nostrController = NostrController.getInstance()
const [name, setName] = useState<string>()
const [email, setEmail] = useState<string>()
const [emailError, setEmailError] = useState<boolean>(false)
const [subject, setSubject] = useState<string>()
const [message, setMessage] = useState<string>()
const [notification, setNotification] = useState<string>()
const [name, setName] = React.useState<string>()
const [email, setEmail] = React.useState<string>()
const [emailError, setEmailError] = React.useState<boolean>(false)
const [subject, setSubject] = React.useState<string>()
const [message, setMessage] = React.useState<string>()
const [notification, setNotification] = React.useState<string>()
const handleEmailChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const value = e.target.value
@@ -98,7 +88,7 @@ Email: ${email}
Subject: ${subject}
Message: ${message}`
)
.catch((err) => {
.catch((err: unknown) => {
setNotification(
`Something went wrong. Please check the console for more information. Please try one more time.`
)
@@ -176,7 +166,7 @@ Message: ${message}`
className="form-control contactFormStyles"
id="mesage"
name="message"
rows="5"
rows={5}
rules="required|max:200"
onChange={(evt) => {
setMessage(evt.target.value)