Skip to content

Commit

Permalink
Merge pull request #3785 from udecode/fix/docs
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
felixfeng33 authored Nov 18, 2024
2 parents a55f04a + 842e518 commit 894e573
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion apps/www/src/registry/default/lib/uploadthing/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
import { AudioLines, FileUp, Film, ImageIcon } from 'lucide-react';
import { useFilePicker } from 'use-file-picker';

import { useUploadFile } from '../lib/uploadthing';
import { useUploadFile } from '../lib/uploadthing/uploadthing';
import { PlateElement } from './plate-element';
import { Spinner } from './spinner';

Expand Down
1 change: 1 addition & 0 deletions apps/www/src/registry/registry-blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const blocks: Registry = [
'@udecode/plate-slash-command',
'@udecode/plate-table',
'@udecode/plate-toggle',
'sonner',
],
files: [
{
Expand Down
3 changes: 3 additions & 0 deletions templates/plate-playground-template/src/app/editor/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Toaster } from 'sonner';

import { PlateEditor } from '@/components/editor/plate-editor';
import { OpenAIProvider } from '@/components/editor/use-chat';

Expand All @@ -6,6 +8,7 @@ export default function Page() {
<div className="h-screen w-full" data-registry="plate">
<OpenAIProvider>
<PlateEditor />
<Toaster />
</OpenAIProvider>
</div>
);
Expand Down
2 changes: 0 additions & 2 deletions templates/plate-playground-template/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { Metadata } from 'next';

import localFont from 'next/font/local';
import { Toaster } from 'sonner';

import './globals.css';

Expand Down Expand Up @@ -32,7 +31,6 @@ export default function RootLayout({
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
<Toaster />
</body>
</html>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
import { AudioLines, FileUp, Film, ImageIcon } from 'lucide-react';
import { useFilePicker } from 'use-file-picker';

import { useUploadFile } from '@/lib/uploadthing';
import { useUploadFile } from '@/lib/uploadthing/uploadthing';

import { PlateElement } from './plate-element';
import { Spinner } from './spinner';
Expand Down

This file was deleted.

0 comments on commit 894e573

Please sign in to comment.