Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
chore: remove unnecessary code lines
Browse files Browse the repository at this point in the history
  • Loading branch information
tobySolutions committed May 12, 2024
1 parent 5995bb1 commit 673186b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/studio-ts/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Clients() {
<div className="mt-24 rounded-4xl bg-neutral-950 py-20 sm:mt-32 sm:py-32 lg:mt-56">
<Container>
<FadeIn className="flex items-center gap-x-8">
<h2 className="text-center font-display text-sm font-semibold tracking-wider text-white sm:text-left">
<h2 className="text-center font-display text-sm font-semibold tracking-wider text-white sm:text-left">
We’ve worked with hundreds of amazing people
</h2>
<div className="h-px flex-auto bg-neutral-800" />
Expand Down
7 changes: 6 additions & 1 deletion packages/studio-ts/src/app/server.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
'use server'

export type FormState = {
message: string
submitted: boolean
}

export const handleWaitlistSubmit = async (
prevState: { message: string; submitted: boolean },
prevState: FormState | undefined,
formData: FormData,
) => {
const url = process.env.NEXT_GOOGLE_SHEETS_API!
Expand Down
6 changes: 3 additions & 3 deletions packages/studio-ts/src/components/WaitlistForm.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use client'
import { handleWaitlistSubmit } from '@/app/server'
"use client"
import { FormState, handleWaitlistSubmit } from '@/app/server'
import { useFormState, useFormStatus } from 'react-dom'

const initialState = {
const initialState: FormState = {
message: '',
submitted: false,
}
Expand Down

0 comments on commit 673186b

Please sign in to comment.