Compare commits
1 Commits
master
...
cd1a6a26d9
Author | SHA1 | Date | |
---|---|---|---|
cd1a6a26d9 |
@ -4,7 +4,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "**" # matches every branch
|
- '**' # matches every branch
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint_and_check:
|
lint_and_check:
|
||||||
@ -15,17 +15,14 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
|
|
||||||
- name: Install pnpm
|
|
||||||
uses: pnpm/action-setup@v4
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
cache: "pnpm"
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: npm ci
|
||||||
|
|
||||||
- name: Run check
|
- name: Run check
|
||||||
run: pnpm run check
|
run: npm run check
|
||||||
|
@ -5,7 +5,15 @@ import { useForm } from "react-hook-form";
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
|
import {
|
||||||
|
Form,
|
||||||
|
FormControl,
|
||||||
|
FormDescription,
|
||||||
|
FormField,
|
||||||
|
FormItem,
|
||||||
|
FormLabel,
|
||||||
|
FormMessage,
|
||||||
|
} from "@/components/ui/form";
|
||||||
import { format } from "date-fns";
|
import { format } from "date-fns";
|
||||||
import { CalendarIcon } from "lucide-react";
|
import { CalendarIcon } from "lucide-react";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
@ -16,9 +24,9 @@ import { signupFormSubmit } from "@/lib/actions";
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|
||||||
export const signupFormSchema = z.object({
|
export const signupFormSchema = z.object({
|
||||||
name: z.string().min(2, { error: "Name is required" }).max(50, { error: "Name is too long" }),
|
name: z.string().min(2, { message: "Name is required" }).max(50, { message: "Name is too long" }),
|
||||||
email: z.email({ error: "Email is invalid" }),
|
email: z.string().email({ message: "Email is invalid" }),
|
||||||
dob: z.date({ error: "Birthday is required" }),
|
dob: z.date({ required_error: "Birthday is required" }),
|
||||||
});
|
});
|
||||||
export const youngestDate = new Date(new Date().setFullYear(new Date().getFullYear() - 20));
|
export const youngestDate = new Date(new Date().setFullYear(new Date().getFullYear() - 20));
|
||||||
export const oldestDate = new Date(new Date().setFullYear(new Date().getFullYear() - 100));
|
export const oldestDate = new Date(new Date().setFullYear(new Date().getFullYear() - 100));
|
||||||
@ -51,7 +59,9 @@ export default function SignUp() {
|
|||||||
<FormControl>
|
<FormControl>
|
||||||
<Input placeholder="name@example.com" {...field} />
|
<Input placeholder="name@example.com" {...field} />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormDescription>We will contact you here with information about events.</FormDescription>
|
<FormDescription>
|
||||||
|
We will contact you here with information about events.
|
||||||
|
</FormDescription>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
@ -81,7 +91,10 @@ export default function SignUp() {
|
|||||||
<FormControl>
|
<FormControl>
|
||||||
<Button
|
<Button
|
||||||
variant={"outline"}
|
variant={"outline"}
|
||||||
className={cn("w-[240px] pl-3 text-left font-normal", !field.value && "text-muted-foreground")}
|
className={cn(
|
||||||
|
"w-[240px] pl-3 text-left font-normal",
|
||||||
|
!field.value && "text-muted-foreground"
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
{field.value ? format(field.value, "PPP") : <span>Pick a date</span>}
|
{field.value ? format(field.value, "PPP") : <span>Pick a date</span>}
|
||||||
<CalendarIcon className="ml-auto h-4 w-4 opacity-50" />
|
<CalendarIcon className="ml-auto h-4 w-4 opacity-50" />
|
||||||
|
9453
package-lock.json
generated
Normal file
9453
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -36,7 +36,7 @@
|
|||||||
"@types/node": "22.16.3",
|
"@types/node": "22.16.3",
|
||||||
"@types/react": "19.1.8",
|
"@types/react": "19.1.8",
|
||||||
"@types/react-dom": "19.1.6",
|
"@types/react-dom": "19.1.6",
|
||||||
"eslint": "9.31.0",
|
"eslint": "9.30.1",
|
||||||
"eslint-config-next": "15.3.5",
|
"eslint-config-next": "15.3.5",
|
||||||
"eslint-config-prettier": "10.1.5",
|
"eslint-config-prettier": "10.1.5",
|
||||||
"postcss": "8.5.6",
|
"postcss": "8.5.6",
|
||||||
@ -44,5 +44,5 @@
|
|||||||
"turbo": "2.5.4",
|
"turbo": "2.5.4",
|
||||||
"typescript": "5.8.3"
|
"typescript": "5.8.3"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.13.1"
|
"packageManager": "npm@11.4.2"
|
||||||
}
|
}
|
||||||
|
6066
pnpm-lock.yaml
generated
6066
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,3 +0,0 @@
|
|||||||
onlyBuiltDependencies:
|
|
||||||
- '@tailwindcss/oxide'
|
|
||||||
- sharp
|
|
Reference in New Issue
Block a user