Skip to content

Commit 7411abe

Browse files
committed
lfg
1 parent 1b0e7f3 commit 7411abe

File tree

6 files changed

+22
-26
lines changed

6 files changed

+22
-26
lines changed

app/(app)/components/partials/card-list-box.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { docs } from "#site/content"
66
import { ThumbnailWrapper } from "@/app/(app)/components/partials/thumbnail-wrapper"
77
import { goodTitle } from "@/resources/lib/utils"
88
import { slug } from "github-slugger"
9-
import { Link } from "next-view-transitions"
9+
import Link from "next/link"
1010
import { Description, Grid, Heading } from "ui"
1111

1212
type GroupedComponents = {

app/layout.tsx

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { cn } from "@/resources/lib/utils"
66
import "@/resources/styles/app.css"
77
import { OpenpanelProvider } from "@openpanel/nextjs"
88
import type { Metadata, Viewport } from "next"
9-
import { ViewTransitions } from "next-view-transitions"
109
import localFont from "next/font/local"
1110

1211
export const metadata: Metadata = {
@@ -90,28 +89,26 @@ export default function RootLayout({
9089
}>) {
9190
return (
9291
<html dir="ltr" lang="en" suppressHydrationWarning>
93-
<ViewTransitions>
94-
<body
95-
className={cn(
96-
"min-h-screen bg-bg font-sans antialiased",
97-
fontSans.variable,
98-
fontMono.variable
92+
<body
93+
className={cn(
94+
"min-h-screen bg-bg font-sans antialiased",
95+
fontSans.variable,
96+
fontMono.variable
97+
)}
98+
>
99+
<Providers>
100+
{children}
101+
{process.env.NODE_ENV === "production" && (
102+
<OpenpanelProvider
103+
url={process.env.ANALYTICS_CLIENT_URL as string}
104+
clientSecret={process.env.ANALYTICS_CLIENT_SECRET as string}
105+
clientId={process.env.ANALYTICS_CLIENT_ID as string}
106+
trackScreenViews={true}
107+
trackAttributes={true}
108+
/>
99109
)}
100-
>
101-
<Providers>
102-
{children}
103-
{process.env.NODE_ENV === "production" && (
104-
<OpenpanelProvider
105-
url={process.env.ANALYTICS_CLIENT_URL as string}
106-
clientSecret={process.env.ANALYTICS_CLIENT_SECRET as string}
107-
clientId={process.env.ANALYTICS_CLIENT_ID as string}
108-
trackScreenViews={true}
109-
trackAttributes={true}
110-
/>
111-
)}
112-
</Providers>
113-
</body>
114-
</ViewTransitions>
110+
</Providers>
111+
</body>
115112
</html>
116113
)
117114
}

bun.lockb

-11.4 KB
Binary file not shown.

components/aside.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { type Docs, docs } from "#site/content"
66
import { goodTitle, sortDocs } from "@/resources/lib/utils"
77
import { LayoutGroup, motion } from "framer-motion"
88
import { IconChevronRight, IconCircleHalf, IconCube, IconHighlight, IconLayers } from "justd-icons"
9-
import { Link as NextLink } from "next-view-transitions"
109
import type { LinkProps as NextLinkProps } from "next/link"
10+
import NextLink from "next/link"
1111
import { usePathname } from "next/navigation"
1212
import { twJoin } from "tailwind-merge"
1313
import { tv } from "tailwind-variants"

components/nav-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import React from "react"
44

55
import { motion } from "framer-motion"
6-
import { Link as NextLink } from "next-view-transitions"
6+
import NextLink from "next/link"
77
import { tv } from "tailwind-variants"
88
import { LinkPrimitive } from "ui"
99

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"mitt": "^3.0.1",
3232
"next": "^14.2.16",
3333
"next-themes": "^0.2.1",
34-
"next-view-transitions": "^0.2.0",
3534
"ntcjs": "^1.1.3",
3635
"react": "^18.3.1",
3736
"react-aria-components": "^1.4.1",

0 commit comments

Comments
 (0)