From d89d92d3936683f4212186cef517c7930dd5b33a Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Mon, 8 May 2023 19:25:46 -0600 Subject: add markdown rendering, copy in old posts --- app/contact/page.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app/contact') diff --git a/app/contact/page.tsx b/app/contact/page.tsx index 1ed2eb8..e596fb7 100644 --- a/app/contact/page.tsx +++ b/app/contact/page.tsx @@ -10,18 +10,18 @@ export default function Contact() { const [submitting, setSubmitting] = useState(false) const [status, setStatus] = useState('') - const nameRef = useRef() - const emailRef = useRef() - const messageRef = useRef() + const nameRef = useRef() + const emailRef = useRef() + const messageRef = useRef() const submit = async (ev: FormEvent) => { ev.preventDefault() setStatus('') - const name: string = nameRef.current?.value ?? '' - const email: string = emailRef.current?.value ?? '' - const message: string = messageRef.current?.value ?? '' + const name = nameRef.current.value + const email = emailRef.current.value + const message = messageRef.current.value if (!name) setStatus(s => s + ' Name required.') if (!email) setStatus(s => s + ' Email required.') -- cgit 1.4.1