Skip to content

Commit e3de688

Browse files
committed
chore: formatting
1 parent 40276fa commit e3de688

File tree

3 files changed

+92
-92
lines changed

3 files changed

+92
-92
lines changed

src/app/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { HomeLayout } from "fumadocs-ui/layouts/home";
2-
import { baseOptions } from "./layout.config";
31
import { Card, Cards } from "fumadocs-ui/components/card";
4-
import { SmallCard } from "@/components/ui/small-card";
2+
import { HomeLayout } from "fumadocs-ui/layouts/home";
53
import {
64
ActivityIcon,
75
AnvilIcon,
@@ -18,6 +16,8 @@ import {
1816
WandSparklesIcon,
1917
} from "lucide-react";
2018
import { Separator } from "@/components/ui/separator";
19+
import { SmallCard } from "@/components/ui/small-card";
20+
import { baseOptions } from "./layout.config";
2121

2222
export default function HomePage() {
2323
return (

src/components/ui/card.tsx

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,92 @@
1-
import * as React from "react"
1+
import type * 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">) {
6-
return (
7-
<div
8-
data-slot="card"
9-
className={cn(
10-
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
11-
className
12-
)}
13-
{...props}
14-
/>
15-
)
6+
return (
7+
<div
8+
data-slot="card"
9+
className={cn(
10+
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
11+
className,
12+
)}
13+
{...props}
14+
/>
15+
);
1616
}
1717

1818
function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
19-
return (
20-
<div
21-
data-slot="card-header"
22-
className={cn(
23-
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
24-
className
25-
)}
26-
{...props}
27-
/>
28-
)
19+
return (
20+
<div
21+
data-slot="card-header"
22+
className={cn(
23+
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
24+
className,
25+
)}
26+
{...props}
27+
/>
28+
);
2929
}
3030

3131
function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
32-
return (
33-
<div
34-
data-slot="card-title"
35-
className={cn("leading-none font-semibold", className)}
36-
{...props}
37-
/>
38-
)
32+
return (
33+
<div
34+
data-slot="card-title"
35+
className={cn("leading-none font-semibold", className)}
36+
{...props}
37+
/>
38+
);
3939
}
4040

4141
function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
42-
return (
43-
<div
44-
data-slot="card-description"
45-
className={cn("text-muted-foreground text-sm", className)}
46-
{...props}
47-
/>
48-
)
42+
return (
43+
<div
44+
data-slot="card-description"
45+
className={cn("text-muted-foreground text-sm", className)}
46+
{...props}
47+
/>
48+
);
4949
}
5050

5151
function CardAction({ className, ...props }: React.ComponentProps<"div">) {
52-
return (
53-
<div
54-
data-slot="card-action"
55-
className={cn(
56-
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
57-
className
58-
)}
59-
{...props}
60-
/>
61-
)
52+
return (
53+
<div
54+
data-slot="card-action"
55+
className={cn(
56+
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
57+
className,
58+
)}
59+
{...props}
60+
/>
61+
);
6262
}
6363

6464
function CardContent({ className, ...props }: React.ComponentProps<"div">) {
65-
return (
66-
<div
67-
data-slot="card-content"
68-
className={cn("px-6", className)}
69-
{...props}
70-
/>
71-
)
65+
return (
66+
<div
67+
data-slot="card-content"
68+
className={cn("px-6", className)}
69+
{...props}
70+
/>
71+
);
7272
}
7373

7474
function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
75-
return (
76-
<div
77-
data-slot="card-footer"
78-
className={cn("flex items-center px-6 [.border-t]:pt-6", className)}
79-
{...props}
80-
/>
81-
)
75+
return (
76+
<div
77+
data-slot="card-footer"
78+
className={cn("flex items-center px-6 [.border-t]:pt-6", className)}
79+
{...props}
80+
/>
81+
);
8282
}
8383

8484
export {
85-
Card,
86-
CardHeader,
87-
CardFooter,
88-
CardTitle,
89-
CardAction,
90-
CardDescription,
91-
CardContent,
92-
}
85+
Card,
86+
CardHeader,
87+
CardFooter,
88+
CardTitle,
89+
CardAction,
90+
CardDescription,
91+
CardContent,
92+
};

src/components/ui/separator.tsx

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

3-
import * as React from "react"
4-
import * as SeparatorPrimitive from "@radix-ui/react-separator"
3+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
4+
import type * as React from "react";
55

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

88
function Separator({
9-
className,
10-
orientation = "horizontal",
11-
decorative = true,
12-
...props
9+
className,
10+
orientation = "horizontal",
11+
decorative = true,
12+
...props
1313
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
14-
return (
15-
<SeparatorPrimitive.Root
16-
data-slot="separator"
17-
decorative={decorative}
18-
orientation={orientation}
19-
className={cn(
20-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
21-
className
22-
)}
23-
{...props}
24-
/>
25-
)
14+
return (
15+
<SeparatorPrimitive.Root
16+
data-slot="separator"
17+
decorative={decorative}
18+
orientation={orientation}
19+
className={cn(
20+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
21+
className,
22+
)}
23+
{...props}
24+
/>
25+
);
2626
}
2727

28-
export { Separator }
28+
export { Separator };

0 commit comments

Comments
 (0)