Compare commits
6 Commits
f8c848f214
...
master
Author | SHA1 | Date | |
---|---|---|---|
9bbdf19897 | |||
723863b971 | |||
af49f49bbf | |||
3be5b9b05f | |||
5de198e319 | |||
94117af29c |
@ -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,14 +15,17 @@ 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: 'npm'
|
cache: "pnpm"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: pnpm install
|
||||||
|
|
||||||
- name: Run check
|
- name: Run check
|
||||||
run: npm run check
|
run: pnpm run check
|
||||||
|
@ -5,15 +5,7 @@ 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 {
|
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
|
||||||
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";
|
||||||
@ -24,9 +16,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, { message: "Name is required" }).max(50, { message: "Name is too long" }),
|
name: z.string().min(2, { error: "Name is required" }).max(50, { error: "Name is too long" }),
|
||||||
email: z.string().email({ message: "Email is invalid" }),
|
email: z.email({ error: "Email is invalid" }),
|
||||||
dob: z.date({ required_error: "Birthday is required" }),
|
dob: z.date({ 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));
|
||||||
@ -59,9 +51,7 @@ export default function SignUp() {
|
|||||||
<FormControl>
|
<FormControl>
|
||||||
<Input placeholder="name@example.com" {...field} />
|
<Input placeholder="name@example.com" {...field} />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormDescription>
|
<FormDescription>We will contact you here with information about events.</FormDescription>
|
||||||
We will contact you here with information about events.
|
|
||||||
</FormDescription>
|
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
@ -91,10 +81,7 @@ export default function SignUp() {
|
|||||||
<FormControl>
|
<FormControl>
|
||||||
<Button
|
<Button
|
||||||
variant={"outline"}
|
variant={"outline"}
|
||||||
className={cn(
|
className={cn("w-[240px] pl-3 text-left font-normal", !field.value && "text-muted-foreground")}
|
||||||
"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
9453
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -33,10 +33,10 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/postcss": "4.1.11",
|
"@tailwindcss/postcss": "4.1.11",
|
||||||
"@types/node": "22.16.0",
|
"@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.30.1",
|
"eslint": "9.31.0",
|
||||||
"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": "npm@11.4.2"
|
"packageManager": "pnpm@10.13.1"
|
||||||
}
|
}
|
||||||
|
6066
pnpm-lock.yaml
generated
Normal file
6066
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
3
pnpm-workspace.yaml
Normal file
3
pnpm-workspace.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
onlyBuiltDependencies:
|
||||||
|
- '@tailwindcss/oxide'
|
||||||
|
- sharp
|
Reference in New Issue
Block a user