Skip to content

Commit

Permalink
lfg
Browse files Browse the repository at this point in the history
  • Loading branch information
irsyadadl committed Nov 23, 2024
1 parent db103e2 commit 5251968
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 137 deletions.
47 changes: 27 additions & 20 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,26 +89,33 @@ export default function RootLayout({
}>) {
return (
<html dir="ltr" lang="en" suppressHydrationWarning>
<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>
</body>
<head>
<script
defer
data-site-id="getjustd.com"
src="https://assets.onedollarstats.com/tracker.js">
</script>
</head>
<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>
</body>
</html>
)
}
3 changes: 0 additions & 3 deletions resources/content/docs/components/collections/menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ A menu presents a variety of actions or options from which you can choose.
## Sub Menu
Menu can be nested to display submenus.
<How toUse="collections/menu/menu-sub-demo" />
<Note>
When `respectScreen` is set to true (which is default), the menu renders in a modal, but it only supports one submenu. If you try to open a second submenu, the modal will close, so use this feature with caution.
</Note>

## Respect Screen
By default, the menu will respect the screen size, when it lower than 600px, it will be displayed as a modal slide from the bottom. You can disable this behavior by setting `respectScreen` to `false`.
Expand Down
114 changes: 0 additions & 114 deletions x.ts

This file was deleted.

0 comments on commit 5251968

Please sign in to comment.