Skip to content

Commit e726ea8

Browse files
Merge pull request #13 from collinschaafsma/chore/tailwind4-beta
tailwind4 beta
2 parents af5a96b + ba661b5 commit e726ea8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+514
-496
lines changed

.eslintrc.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44
"extends": [
55
"next/core-web-vitals",
66
"next/typescript",
7-
"prettier",
8-
"plugin:tailwindcss/recommended"
7+
"prettier"
98
],
10-
"plugins": ["tailwindcss"],
119
"rules": {
12-
"tailwindcss/no-custom-classname": "off",
1310
"@typescript-eslint/no-unused-vars": [
1411
"error",
1512
{
@@ -23,12 +20,6 @@
2320
}
2421
]
2522
},
26-
"settings": {
27-
"tailwindcss": {
28-
"callees": ["cn", "cva"],
29-
"config": "tailwind.config.ts"
30-
}
31-
},
3223
"overrides": [
3324
{
3425
"files": ["*.ts", "*.tsx"],

app/(app)/_components/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MobileNav } from "./nav"
66

77
export function Header({ children }: Readonly<{ children?: React.ReactNode }>) {
88
return (
9-
<header className="sticky top-0 z-30 flex h-14 items-center justify-between gap-4 bg-background px-4 sm:static sm:h-auto sm:border-0 sm:bg-transparent md:ml-4 md:max-w-screen-xl md:pl-2 md:pr-0">
9+
<header className="bg-background sticky top-0 z-30 flex h-14 items-center justify-between gap-4 px-4 sm:static sm:h-auto sm:border-0 sm:bg-transparent md:ml-4 md:max-w-(--breakpoint-xl) md:pr-0 md:pl-2">
1010
<MobileNav />
1111
{/* this allows you to optionally pass in other components like a breadcrumb or a search component from the page */}
1212
{children}

app/(app)/_components/nav/link.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function DesktopNavLink({
2020
<Link
2121
href={href}
2222
className={cn(
23-
"flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:size-8",
23+
"text-muted-foreground hover:text-foreground flex size-9 items-center justify-center rounded-lg transition-colors md:size-8",
2424
active && "bg-accent text-accent-foreground",
2525
className
2626
)}
@@ -47,7 +47,7 @@ export function MobileNavLink({
4747
onClick={closeNav}
4848
href={href}
4949
className={cn(
50-
"flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground",
50+
"text-muted-foreground hover:text-foreground flex items-center gap-4 px-2.5",
5151
active && "text-foreground",
5252
className
5353
)}

app/(app)/account/_components/paginator-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function PaginatorProvider<T extends GenericData>({
5454
}
5555

5656
setHasMore(responseToPaginate?.hasMore || false)
57-
}, [cursor])
57+
}, [cursor, responseToPaginate])
5858

5959
const handleNextPage = () => {
6060
if (responseToPaginate?.data.length) {

app/(app)/account/_components/payment-method-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function PaymentMethodCardSkeleton() {
3232
function PaymentMethodCardErrorFallback() {
3333
return (
3434
<>
35-
<CardContent className="flex flex-col gap-2 text-destructive">
35+
<CardContent className="text-destructive flex flex-col gap-2">
3636
<div className="flex">We are sorry.</div>
3737
<div className="flex text-sm">
3838
An error occurred while fetching payment methods.

app/(app)/account/_components/subscription-plan-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function SubscriptionPlanSkeleton() {
4545
function SubscriptionPlanErrorFallback() {
4646
return (
4747
<>
48-
<CardContent className="flex flex-col gap-2 text-destructive">
48+
<CardContent className="text-destructive flex flex-col gap-2">
4949
<div className="flex">We are sorry.</div>
5050
<div className="flex text-sm">
5151
An error occurred while fetching subscription plan.

app/(app)/account/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default async function AccountPage(props: {
3636
</Breadcrumb>
3737
</Header>
3838
<main className="flex-1 p-6 md:p-4 md:py-0">
39-
<div className="grid gap-4 md:max-w-screen-xl md:grid-cols-2">
39+
<div className="grid gap-4 md:max-w-(--breakpoint-xl) md:grid-cols-2">
4040
<PaymentMethodCard />
4141
<SubscriptionPlanCard />
4242
<div className="flex flex-col gap-4 md:col-span-2">

app/(app)/dashboard/_components/customers-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function LoadCustomersCard() {
5454
return (
5555
<>
5656
<div className="text-2xl font-bold">{customersData.current}</div>
57-
<p className="text-xs text-muted-foreground">
57+
<p className="text-muted-foreground text-xs">
5858
{customersData.percentageChange >= 0 ? "+" : ""}
5959
{customersData.percentageChange.toFixed(1)}% from last month
6060
</p>
@@ -82,7 +82,7 @@ export function CustomersCard() {
8282
<Card>
8383
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
8484
<CardTitle className="text-sm font-medium">Customers</CardTitle>
85-
<Users className="size-4 text-muted-foreground" />
85+
<Users className="text-muted-foreground size-4" />
8686
</CardHeader>
8787
<CardContent>
8888
<ErrorBoundary fallback={<CustomersCardErrorFallback />}>

app/(app)/dashboard/_components/gross-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function LoadGrossCard() {
5555
return (
5656
<>
5757
<div className="text-2xl font-bold">${grossData.current}</div>
58-
<p className="text-xs text-muted-foreground">
58+
<p className="text-muted-foreground text-xs">
5959
{grossData.percentageChange >= 0 ? "+" : ""}
6060
{grossData.percentageChange.toFixed(1)}% from last month
6161
</p>
@@ -83,7 +83,7 @@ export function GrossCard() {
8383
<Card>
8484
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
8585
<CardTitle className="text-sm font-medium">Gross</CardTitle>
86-
<Landmark className="size-4 text-muted-foreground" />
86+
<Landmark className="text-muted-foreground size-4" />
8787
</CardHeader>
8888
<CardContent>
8989
<ErrorBoundary fallback={<GrossCardErrorFallback />}>

app/(app)/dashboard/_components/mrr-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function LoadMRRCard() {
5454
return (
5555
<>
5656
<div className="text-2xl font-bold">${mrrData.current}</div>
57-
<p className="text-xs text-muted-foreground">
57+
<p className="text-muted-foreground text-xs">
5858
{mrrData.percentageChange >= 0 ? "+" : ""}
5959
{mrrData.percentageChange.toFixed(1)}% from last month
6060
</p>
@@ -82,7 +82,7 @@ export function MRRCard() {
8282
<Card>
8383
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
8484
<CardTitle className="text-sm font-medium">MRR</CardTitle>
85-
<Receipt className="size-4 text-muted-foreground" />
85+
<Receipt className="text-muted-foreground size-4" />
8686
</CardHeader>
8787
<CardContent>
8888
<ErrorBoundary fallback={<MRRCardErrorFallback />}>

0 commit comments

Comments
 (0)