ci: fix code style linting errors
This commit is contained in:
committed by
GitHub Actions
parent
55203d38eb
commit
15edaf0561
@@ -5,8 +5,7 @@ export interface NodeViewContentProps {
|
|||||||
as?: React.ElementType,
|
as?: React.ElementType,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const NodeViewContent: React.FC<NodeViewContentProps> =
|
export const NodeViewContent: React.FC<NodeViewContentProps> = React.forwardRef((props, ref) => {
|
||||||
React.forwardRef((props, ref) => {
|
|
||||||
const Tag = props.as || 'div'
|
const Tag = props.as || 'div'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -20,5 +19,4 @@ export const NodeViewContent: React.FC<NodeViewContentProps> =
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,7 @@ export interface NodeViewWrapperProps {
|
|||||||
as?: React.ElementType,
|
as?: React.ElementType,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const NodeViewWrapper: React.FC<NodeViewWrapperProps> =
|
export const NodeViewWrapper: React.FC<NodeViewWrapperProps> = React.forwardRef((props, ref) => {
|
||||||
React.forwardRef((props, ref) => {
|
|
||||||
const { onDragStart } = useReactNodeView()
|
const { onDragStart } = useReactNodeView()
|
||||||
const Tag = props.as || 'div'
|
const Tag = props.as || 'div'
|
||||||
|
|
||||||
@@ -23,4 +22,4 @@ export const NodeViewWrapper: React.FC<NodeViewWrapperProps> =
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user