Skip to content

Commit

Permalink
Install date-fns globally
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbleasel committed Jan 23, 2025
1 parent f780bed commit 326f37a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions apps/docs/components/preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ export const Preview = async ({
tailwindcss: 'latest',
'tailwindcss-animate': 'latest',
...dependencies,

// Common utilities
'date-fns': 'latest',
},
devDependencies: {
autoprefixer: 'latest',
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/docs/kanban.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { AutoTypeTable } from 'fumadocs-typescript/ui';
{ name: 'dnd kit', url: 'https://dndkit.com/' },
]} />

<Preview dependencies={[{ 'date-fns': 'latest' }]} name="kanban" code={`'use client';
<Preview name="kanban" code={`'use client';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import {
Expand Down Expand Up @@ -114,7 +114,7 @@ export default Example;`} />

### Simple version

<Preview dependencies={[{ 'date-fns': 'latest' }]} name="kanban" code={`'use client';
<Preview name="kanban" code={`'use client';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import {
Expand Down

0 comments on commit 326f37a

Please sign in to comment.