This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@shadcn | |
Projects | |
cvx-jr-golf | |
nextjs-payload | |
nextjs-payload | |
cvxjrgolf-nextjs-payload-d65bd1 | |
Dokploy Server | |
General | |
Environment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-sqlite' | |
export async function up({ payload, req }: MigrateUpArgs): Promise<void> { | |
await payload.db.drizzle.run(sql` | |
CREATE TABLE IF NOT EXISTS \"team_temp\" ( | |
\"id\" integer PRIMARY KEY NOT NULL, | |
\"memberType\" text DEFAULT \'staff\', | |
\"name\" text, | |
\"avatar_id\" integer, | |
\"image_id\" integer, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client"; | |
import type { RowLabelComponent } from "payload"; | |
import { useRowLabel } from "@payloadcms/ui"; | |
export const RowLabel: RowLabelComponent = () => { | |
const { data, rowNumber } = useRowLabel<{ title: string }>(); | |
return ( | |
<div className="text-orange-400 capitalize"> | |
{`${rowNumber} - ${data.title || "Untitled"}`} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client"; | |
import { useForm } from "react-hook-form"; | |
import { zodResolver } from "@hookform/resolvers/zod"; | |
import * as z from "zod"; | |
import isMobilePhone from "validator/lib/isMobilePhone"; | |
import isEmail from "validator/lib/isEmail"; | |
import { | |
Form, | |
FormControl, |