Skip to content

Commit

Permalink
Refactor/onboarding form (#992)
Browse files Browse the repository at this point in the history
* update headlessui package to 2.1.2

* update alpha/new components
  • Loading branch information
John-Paul-Larkin authored Aug 18, 2024
1 parent d5981c5 commit 36c4246
Show file tree
Hide file tree
Showing 10 changed files with 950 additions and 340 deletions.
8 changes: 3 additions & 5 deletions app/(app)/alpha/additional-details/_actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { db } from "@/server/db";
import { user } from "@/server/db/schema";
import { eq } from "drizzle-orm";

export async function handleFormSlideOneSubmit(dataInput: TypeSlideOneSchema) {
export async function slideOneSubmitAction(dataInput: TypeSlideOneSchema) {
const session = await getServerAuthSession();
if (!session || !session.user) {
redirect("/get-started");
Expand Down Expand Up @@ -47,7 +47,7 @@ export async function handleFormSlideOneSubmit(dataInput: TypeSlideOneSchema) {
}
}

export async function handleFormSlideTwoSubmit(dataInput: TypeSlideTwoSchema) {
export async function slideTwoSubmitAction(dataInput: TypeSlideTwoSchema) {
const session = await getServerAuthSession();
if (!session || !session.user) {
redirect("/get-started");
Expand Down Expand Up @@ -75,9 +75,7 @@ export async function handleFormSlideTwoSubmit(dataInput: TypeSlideTwoSchema) {
}
}

export async function handleFormSlideThreeSubmit(
dataInput: TypeSlideThreeSchema,
) {
export async function slideThreeSubmitAction(dataInput: TypeSlideThreeSchema) {
const session = await getServerAuthSession();
if (!session || !session.user) {
redirect("/get-started");
Expand Down
Loading

0 comments on commit 36c4246

Please sign in to comment.