Skip to content

Commit e5b9dd3

Browse files
committed
fix lint
1 parent 455853b commit e5b9dd3

20 files changed

+43
-29
lines changed

apps/www/src/registry/default/examples/playground-demo.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ import { editorPlugins } from '@/registry/default/components/editor/plugins/edit
7272
import { useCreateEditor } from '@/registry/default/components/editor/use-create-editor';
7373
import { Editor, EditorContainer } from '@/registry/default/plate-ui/editor';
7474

75-
7675
export default function PlaygroundDemo({ className }: { className?: string }) {
7776
const value = usePlaygroundValue();
7877
const enabled = usePlaygroundEnabled();

apps/www/src/registry/default/plate-ui/block-suggestion.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,8 @@ export const BlockSuggestionCard = ({
146146
<div className="relative flex items-center">
147147
{/* Replace to your own backend or refer to potion */}
148148
<Avatar className="size-6">
149-
<AvatarImage
150-
alt={userInfo?.name}
151-
src={userInfo?.avatarUrl}
152-
/>
153-
<AvatarFallback>
154-
{userInfo?.name?.[0]}
155-
</AvatarFallback>
149+
<AvatarImage alt={userInfo?.name} src={userInfo?.avatarUrl} />
150+
<AvatarFallback>{userInfo?.name?.[0]}</AvatarFallback>
156151
</Avatar>
157152
<h4 className="mx-2 text-sm leading-none font-semibold">
158153
{userInfo?.name}

apps/www/src/registry/default/plate-ui/column-element.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ import { PathApi } from '@udecode/plate';
99
import { useDraggable, useDropLine } from '@udecode/plate-dnd';
1010
import { ResizableProvider } from '@udecode/plate-resizable';
1111
import { BlockSelectionPlugin } from '@udecode/plate-selection/react';
12-
import { PlateElement, usePluginOption, useReadOnly , withHOC } from '@udecode/plate/react';
12+
import {
13+
PlateElement,
14+
usePluginOption,
15+
useReadOnly,
16+
withHOC,
17+
} from '@udecode/plate/react';
1318
import { GripHorizontal } from 'lucide-react';
1419

1520
import { Button } from './button';

apps/www/src/registry/default/plate-ui/column-group-element.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import {
1010
useEditorRef,
1111
useElement,
1212
useReadOnly,
13-
useRemoveNodeButton } from '@udecode/plate/react';
13+
useRemoveNodeButton,
14+
} from '@udecode/plate/react';
1415
import { type LucideProps, Trash2Icon } from 'lucide-react';
1516

1617
import { Button } from './button';

apps/www/src/registry/default/plate-ui/date-element.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
import { cn, withRef } from '@udecode/cn';
4-
import { PlateElement , useReadOnly } from '@udecode/plate/react';
4+
import { PlateElement, useReadOnly } from '@udecode/plate/react';
55

66
import { Calendar } from './calendar';
77
import { Popover, PopoverContent, PopoverTrigger } from './popover';

apps/www/src/registry/default/plate-ui/emoji-input-element.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import React, { useMemo, useState } from 'react';
55
import { withRef } from '@udecode/cn';
66
import { EmojiInlineIndexSearch, insertEmoji } from '@udecode/plate-emoji';
77
import { EmojiPlugin } from '@udecode/plate-emoji/react';
8-
import { PlateElement , usePluginOption } from '@udecode/plate/react';
8+
import { PlateElement, usePluginOption } from '@udecode/plate/react';
99

1010
import { useDebounce } from '@/registry/default/hooks/use-debounce';
1111

apps/www/src/registry/default/plate-ui/equation-element.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { TEquationElement } from '@udecode/plate-math';
66

77
import { cn, withRef } from '@udecode/cn';
88
import { useEquationElement } from '@udecode/plate-math/react';
9-
import { PlateElement, useElement , useSelected } from '@udecode/plate/react';
9+
import { PlateElement, useElement, useSelected } from '@udecode/plate/react';
1010
import { RadicalIcon } from 'lucide-react';
1111

1212
import { EquationPopoverContent } from './equation-popover';

apps/www/src/registry/default/plate-ui/hr-element.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
import React from 'react';
44

55
import { cn, withRef } from '@udecode/cn';
6-
import { PlateElement, useFocused, useReadOnly , useSelected } from '@udecode/plate/react';
7-
6+
import {
7+
PlateElement,
8+
useFocused,
9+
useReadOnly,
10+
useSelected,
11+
} from '@udecode/plate/react';
812

913
export const HrElement = withRef<typeof PlateElement>(
1014
({ className, nodeProps, ...props }, ref) => {

apps/www/src/registry/default/plate-ui/image-element.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { cn, withRef } from '@udecode/cn';
66
import { useDraggable } from '@udecode/plate-dnd';
77
import { Image, ImagePlugin, useMediaState } from '@udecode/plate-media/react';
88
import { ResizableProvider, useResizableValue } from '@udecode/plate-resizable';
9-
import { PlateElement , withHOC } from '@udecode/plate/react';
9+
import { PlateElement, withHOC } from '@udecode/plate/react';
1010

1111
import { Caption, CaptionTextarea } from './caption';
1212
import { MediaPopover } from './media-popover';

apps/www/src/registry/default/plate-ui/inline-equation-element.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import {
1010
PlateElement,
1111
useEditorSelector,
1212
useElement,
13-
useSelected } from '@udecode/plate/react';
13+
useSelected,
14+
} from '@udecode/plate/react';
1415
import { RadicalIcon } from 'lucide-react';
1516

1617
import { EquationPopoverContent } from './equation-popover';

0 commit comments

Comments
 (0)