Skip to content

Commit

Permalink
lfg
Browse files Browse the repository at this point in the history
  • Loading branch information
irsyadadl committed Oct 30, 2024
1 parent 1b0e7f3 commit 7411abe
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 26 deletions.
2 changes: 1 addition & 1 deletion app/(app)/components/partials/card-list-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { docs } from "#site/content"
import { ThumbnailWrapper } from "@/app/(app)/components/partials/thumbnail-wrapper"
import { goodTitle } from "@/resources/lib/utils"
import { slug } from "github-slugger"
import { Link } from "next-view-transitions"
import Link from "next/link"
import { Description, Grid, Heading } from "ui"

type GroupedComponents = {
Expand Down
41 changes: 19 additions & 22 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { cn } from "@/resources/lib/utils"
import "@/resources/styles/app.css"
import { OpenpanelProvider } from "@openpanel/nextjs"
import type { Metadata, Viewport } from "next"
import { ViewTransitions } from "next-view-transitions"
import localFont from "next/font/local"

export const metadata: Metadata = {
Expand Down Expand Up @@ -90,28 +89,26 @@ export default function RootLayout({
}>) {
return (
<html dir="ltr" lang="en" suppressHydrationWarning>
<ViewTransitions>
<body
className={cn(
"min-h-screen bg-bg font-sans antialiased",
fontSans.variable,
fontMono.variable
<body
className={cn(
"min-h-screen bg-bg font-sans antialiased",
fontSans.variable,
fontMono.variable
)}
>
<Providers>
{children}
{process.env.NODE_ENV === "production" && (
<OpenpanelProvider
url={process.env.ANALYTICS_CLIENT_URL as string}
clientSecret={process.env.ANALYTICS_CLIENT_SECRET as string}
clientId={process.env.ANALYTICS_CLIENT_ID as string}
trackScreenViews={true}
trackAttributes={true}
/>
)}
>
<Providers>
{children}
{process.env.NODE_ENV === "production" && (
<OpenpanelProvider
url={process.env.ANALYTICS_CLIENT_URL as string}
clientSecret={process.env.ANALYTICS_CLIENT_SECRET as string}
clientId={process.env.ANALYTICS_CLIENT_ID as string}
trackScreenViews={true}
trackAttributes={true}
/>
)}
</Providers>
</body>
</ViewTransitions>
</Providers>
</body>
</html>
)
}
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion components/aside.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { type Docs, docs } from "#site/content"
import { goodTitle, sortDocs } from "@/resources/lib/utils"
import { LayoutGroup, motion } from "framer-motion"
import { IconChevronRight, IconCircleHalf, IconCube, IconHighlight, IconLayers } from "justd-icons"
import { Link as NextLink } from "next-view-transitions"
import type { LinkProps as NextLinkProps } from "next/link"
import NextLink from "next/link"
import { usePathname } from "next/navigation"
import { twJoin } from "tailwind-merge"
import { tv } from "tailwind-variants"
Expand Down
2 changes: 1 addition & 1 deletion components/nav-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React from "react"

import { motion } from "framer-motion"
import { Link as NextLink } from "next-view-transitions"
import NextLink from "next/link"
import { tv } from "tailwind-variants"
import { LinkPrimitive } from "ui"

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"mitt": "^3.0.1",
"next": "^14.2.16",
"next-themes": "^0.2.1",
"next-view-transitions": "^0.2.0",
"ntcjs": "^1.1.3",
"react": "^18.3.1",
"react-aria-components": "^1.4.1",
Expand Down

0 comments on commit 7411abe

Please sign in to comment.