mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 13:38:49 +08:00
ci: fix code style linting errors
This commit is contained in:
parent
55203d38eb
commit
15edaf0561
@ -5,11 +5,10 @@ export interface NodeViewContentProps {
|
||||
as?: React.ElementType,
|
||||
}
|
||||
|
||||
export const NodeViewContent: React.FC<NodeViewContentProps> =
|
||||
React.forwardRef((props, ref) => {
|
||||
const Tag = props.as || 'div'
|
||||
export const NodeViewContent: React.FC<NodeViewContentProps> = React.forwardRef((props, ref) => {
|
||||
const Tag = props.as || 'div'
|
||||
|
||||
return (
|
||||
return (
|
||||
<Tag
|
||||
{...props}
|
||||
ref={ref}
|
||||
@ -19,6 +18,5 @@ export const NodeViewContent: React.FC<NodeViewContentProps> =
|
||||
whiteSpace: 'pre-wrap',
|
||||
}}
|
||||
/>
|
||||
)
|
||||
})
|
||||
|
||||
)
|
||||
})
|
||||
|
@ -6,12 +6,11 @@ export interface NodeViewWrapperProps {
|
||||
as?: React.ElementType,
|
||||
}
|
||||
|
||||
export const NodeViewWrapper: React.FC<NodeViewWrapperProps> =
|
||||
React.forwardRef((props, ref) => {
|
||||
const { onDragStart } = useReactNodeView()
|
||||
const Tag = props.as || 'div'
|
||||
export const NodeViewWrapper: React.FC<NodeViewWrapperProps> = React.forwardRef((props, ref) => {
|
||||
const { onDragStart } = useReactNodeView()
|
||||
const Tag = props.as || 'div'
|
||||
|
||||
return (
|
||||
return (
|
||||
<Tag
|
||||
{...props}
|
||||
ref={ref}
|
||||
@ -22,5 +21,5 @@ export const NodeViewWrapper: React.FC<NodeViewWrapperProps> =
|
||||
whiteSpace: 'normal',
|
||||
}}
|
||||
/>
|
||||
)
|
||||
})
|
||||
)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user