Fix
All checks were successful
Lint / lint (push) Successful in 13s

This commit is contained in:
Julien Valverdé
2025-09-22 05:31:53 +02:00
parent fb860e8be6
commit 6b88f2948e
3 changed files with 9 additions and 6 deletions

View File

@@ -15,7 +15,10 @@
"linter": { "linter": {
"enabled": true, "enabled": true,
"rules": { "rules": {
"recommended": true "recommended": true,
"nursery": {
"useSortedClasses": "error"
}
} }
}, },
"javascript": { "javascript": {

View File

@@ -7,7 +7,7 @@ function Card({ className, ...props }: React.ComponentProps<"div">) {
<div <div
data-slot="card" data-slot="card"
className={cn( className={cn(
"rounded-base flex flex-col shadow-shadow border-2 gap-6 py-6 border-border bg-background text-foreground font-base", "flex flex-col gap-6 rounded-base border-2 border-border bg-background py-6 font-base text-foreground shadow-shadow",
className, className,
)} )}
{...props} {...props}
@@ -42,7 +42,7 @@ function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
return ( return (
<div <div
data-slot="card-description" data-slot="card-description"
className={cn("text-sm font-base", className)} className={cn("font-base text-sm", className)}
{...props} {...props}
/> />
) )

View File

@@ -1,6 +1,6 @@
import { Card, CardContent } from "@/components/ui/card" import { createRootRoute, Outlet } from "@tanstack/react-router"
import { Outlet, createRootRoute } from "@tanstack/react-router"
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools" import { TanStackRouterDevtools } from "@tanstack/react-router-devtools"
import { Card, CardContent } from "@/components/ui/card"
export const Route = createRootRoute({ export const Route = createRootRoute({
@@ -9,7 +9,7 @@ export const Route = createRootRoute({
function RootComponent() { function RootComponent() {
return <> return <>
<div className="text-foreground mx-auto w-[750px] max-w-full px-5 pt-28 pb-10"> <div className="mx-auto w-[750px] max-w-full px-5 pt-28 pb-10 text-foreground">
<Card> <Card>
<CardContent> <CardContent>
<Outlet /> <Outlet />