Skip to content

Commit c227001

Browse files
format using prettier
1 parent 52ae4fd commit c227001

File tree

9 files changed

+74
-75
lines changed

9 files changed

+74
-75
lines changed

app/login/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const Login = () => {
5555
setError(null);
5656

5757
try {
58-
const { error } = await supabase.auth.signInWithOAuth({
58+
const { error } = await supabase.auth.signInWithOAuth({
5959
provider,
6060
options: {
6161
redirectTo: `${process.env.SITE_URL}/auth/callback`,

components/NavbarComponents/Navbar.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ import { usePathname } from "next/navigation";
66
import ThemeToggle from "./ThemeToggle";
77
import AuthButtons from "./AuthButtons";
88

9-
export default function Navbar() {
9+
export default function Navbar() {
1010
const pathname = usePathname();
11-
1211

1312
const links = [
1413
{ name: "Home", href: "/", icon: Home },
@@ -50,7 +49,7 @@ export default function Navbar() {
5049

5150
<div className="flex items-center space-x-2 ml-auto gap-3">
5251
<ThemeToggle />
53-
<AuthButtons />
52+
<AuthButtons />
5453
</div>
5554
</div>
5655
</nav>

components/ui/card.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import * as React from "react"
1+
import * as React from "react";
22

3-
import { cn } from "@/lib/utils"
3+
import { cn } from "@/lib/utils";
44

55
function Card({ className, ...props }: React.ComponentProps<"div">) {
66
return (
77
<div
88
data-slot="card"
99
className={cn(
1010
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
11-
className
11+
className,
1212
)}
1313
{...props}
1414
/>
15-
)
15+
);
1616
}
1717

1818
function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
@@ -21,11 +21,11 @@ function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
2121
data-slot="card-header"
2222
className={cn(
2323
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
24-
className
24+
className,
2525
)}
2626
{...props}
2727
/>
28-
)
28+
);
2929
}
3030

3131
function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
@@ -35,7 +35,7 @@ function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
3535
className={cn("leading-none font-semibold", className)}
3636
{...props}
3737
/>
38-
)
38+
);
3939
}
4040

4141
function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
@@ -45,7 +45,7 @@ function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
4545
className={cn("text-muted-foreground text-sm", className)}
4646
{...props}
4747
/>
48-
)
48+
);
4949
}
5050

5151
function CardAction({ className, ...props }: React.ComponentProps<"div">) {
@@ -54,11 +54,11 @@ function CardAction({ className, ...props }: React.ComponentProps<"div">) {
5454
data-slot="card-action"
5555
className={cn(
5656
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
57-
className
57+
className,
5858
)}
5959
{...props}
6060
/>
61-
)
61+
);
6262
}
6363

6464
function CardContent({ className, ...props }: React.ComponentProps<"div">) {
@@ -68,7 +68,7 @@ function CardContent({ className, ...props }: React.ComponentProps<"div">) {
6868
className={cn("px-6", className)}
6969
{...props}
7070
/>
71-
)
71+
);
7272
}
7373

7474
function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
@@ -78,7 +78,7 @@ function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
7878
className={cn("flex items-center px-6 [.border-t]:pt-6", className)}
7979
{...props}
8080
/>
81-
)
81+
);
8282
}
8383

8484
export {
@@ -89,4 +89,4 @@ export {
8989
CardAction,
9090
CardDescription,
9191
CardContent,
92-
}
92+
};

components/ui/field.tsx

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
"use client"
1+
"use client";
22

3-
import { useMemo } from "react"
4-
import { cva, type VariantProps } from "class-variance-authority"
3+
import { useMemo } from "react";
4+
import { cva, type VariantProps } from "class-variance-authority";
55

6-
import { cn } from "@/lib/utils"
7-
import { Label } from "@/components/ui/label"
8-
import { Separator } from "@/components/ui/separator"
6+
import { cn } from "@/lib/utils";
7+
import { Label } from "@/components/ui/label";
8+
import { Separator } from "@/components/ui/separator";
99

1010
function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">) {
1111
return (
@@ -14,11 +14,11 @@ function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">) {
1414
className={cn(
1515
"flex flex-col gap-6",
1616
"has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
17-
className
17+
className,
1818
)}
1919
{...props}
2020
/>
21-
)
21+
);
2222
}
2323

2424
function FieldLegend({
@@ -34,11 +34,11 @@ function FieldLegend({
3434
"mb-3 font-medium",
3535
"data-[variant=legend]:text-base",
3636
"data-[variant=label]:text-sm",
37-
className
37+
className,
3838
)}
3939
{...props}
4040
/>
41-
)
41+
);
4242
}
4343

4444
function FieldGroup({ className, ...props }: React.ComponentProps<"div">) {
@@ -47,11 +47,11 @@ function FieldGroup({ className, ...props }: React.ComponentProps<"div">) {
4747
data-slot="field-group"
4848
className={cn(
4949
"group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",
50-
className
50+
className,
5151
)}
5252
{...props}
5353
/>
54-
)
54+
);
5555
}
5656

5757
const fieldVariants = cva(
@@ -75,8 +75,8 @@ const fieldVariants = cva(
7575
defaultVariants: {
7676
orientation: "vertical",
7777
},
78-
}
79-
)
78+
},
79+
);
8080

8181
function Field({
8282
className,
@@ -91,7 +91,7 @@ function Field({
9191
className={cn(fieldVariants({ orientation }), className)}
9292
{...props}
9393
/>
94-
)
94+
);
9595
}
9696

9797
function FieldContent({ className, ...props }: React.ComponentProps<"div">) {
@@ -100,11 +100,11 @@ function FieldContent({ className, ...props }: React.ComponentProps<"div">) {
100100
data-slot="field-content"
101101
className={cn(
102102
"group/field-content flex flex-1 flex-col gap-1.5 leading-snug",
103-
className
103+
className,
104104
)}
105105
{...props}
106106
/>
107-
)
107+
);
108108
}
109109

110110
function FieldLabel({
@@ -118,11 +118,11 @@ function FieldLabel({
118118
"group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50",
119119
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4",
120120
"has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",
121-
className
121+
className,
122122
)}
123123
{...props}
124124
/>
125-
)
125+
);
126126
}
127127

128128
function FieldTitle({ className, ...props }: React.ComponentProps<"div">) {
@@ -131,11 +131,11 @@ function FieldTitle({ className, ...props }: React.ComponentProps<"div">) {
131131
data-slot="field-label"
132132
className={cn(
133133
"flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
134-
className
134+
className,
135135
)}
136136
{...props}
137137
/>
138-
)
138+
);
139139
}
140140

141141
function FieldDescription({ className, ...props }: React.ComponentProps<"p">) {
@@ -146,27 +146,27 @@ function FieldDescription({ className, ...props }: React.ComponentProps<"p">) {
146146
"text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
147147
"last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",
148148
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
149-
className
149+
className,
150150
)}
151151
{...props}
152152
/>
153-
)
153+
);
154154
}
155155

156156
function FieldSeparator({
157157
children,
158158
className,
159159
...props
160160
}: React.ComponentProps<"div"> & {
161-
children?: React.ReactNode
161+
children?: React.ReactNode;
162162
}) {
163163
return (
164164
<div
165165
data-slot="field-separator"
166166
data-content={!!children}
167167
className={cn(
168168
"relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
169-
className
169+
className,
170170
)}
171171
{...props}
172172
>
@@ -180,7 +180,7 @@ function FieldSeparator({
180180
</span>
181181
)}
182182
</div>
183-
)
183+
);
184184
}
185185

186186
function FieldError({
@@ -189,33 +189,33 @@ function FieldError({
189189
errors,
190190
...props
191191
}: React.ComponentProps<"div"> & {
192-
errors?: Array<{ message?: string } | undefined>
192+
errors?: Array<{ message?: string } | undefined>;
193193
}) {
194194
const content = useMemo(() => {
195195
if (children) {
196-
return children
196+
return children;
197197
}
198198

199199
if (!errors) {
200-
return null
200+
return null;
201201
}
202202

203203
if (errors?.length === 1 && errors[0]?.message) {
204-
return errors[0].message
204+
return errors[0].message;
205205
}
206206

207207
return (
208208
<ul className="ml-4 flex list-disc flex-col gap-1">
209209
{errors.map(
210210
(error, index) =>
211-
error?.message && <li key={index}>{error.message}</li>
211+
error?.message && <li key={index}>{error.message}</li>,
212212
)}
213213
</ul>
214-
)
215-
}, [children, errors])
214+
);
215+
}, [children, errors]);
216216

217217
if (!content) {
218-
return null
218+
return null;
219219
}
220220

221221
return (
@@ -227,7 +227,7 @@ function FieldError({
227227
>
228228
{content}
229229
</div>
230-
)
230+
);
231231
}
232232

233233
export {
@@ -241,4 +241,4 @@ export {
241241
FieldSet,
242242
FieldContent,
243243
FieldTitle,
244-
}
244+
};

components/ui/input.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as React from "react"
1+
import * as React from "react";
22

3-
import { cn } from "@/lib/utils"
3+
import { cn } from "@/lib/utils";
44

55
function Input({ className, type, ...props }: React.ComponentProps<"input">) {
66
return (
@@ -11,11 +11,11 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
1111
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1212
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
1313
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
14-
className
14+
className,
1515
)}
1616
{...props}
1717
/>
18-
)
18+
);
1919
}
2020

21-
export { Input }
21+
export { Input };

components/ui/label.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
"use client"
1+
"use client";
22

3-
import * as React from "react"
4-
import * as LabelPrimitive from "@radix-ui/react-label"
3+
import * as React from "react";
4+
import * as LabelPrimitive from "@radix-ui/react-label";
55

6-
import { cn } from "@/lib/utils"
6+
import { cn } from "@/lib/utils";
77

88
function Label({
99
className,
@@ -14,11 +14,11 @@ function Label({
1414
data-slot="label"
1515
className={cn(
1616
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
17-
className
17+
className,
1818
)}
1919
{...props}
2020
/>
21-
)
21+
);
2222
}
2323

24-
export { Label }
24+
export { Label };

0 commit comments

Comments
 (0)