ci: fix code style linting errors

This commit is contained in:
philippkuehn
2021-06-14 14:03:29 +00:00
committed by GitHub Actions
parent 55203d38eb
commit 15edaf0561
2 changed files with 11 additions and 14 deletions

View File

@@ -5,8 +5,7 @@ export interface NodeViewContentProps {
as?: React.ElementType,
}
export const NodeViewContent: React.FC<NodeViewContentProps> =
React.forwardRef((props, ref) => {
export const NodeViewContent: React.FC<NodeViewContentProps> = React.forwardRef((props, ref) => {
const Tag = props.as || 'div'
return (
@@ -21,4 +20,3 @@ export const NodeViewContent: React.FC<NodeViewContentProps> =
/>
)
})

View File

@@ -6,8 +6,7 @@ export interface NodeViewWrapperProps {
as?: React.ElementType,
}
export const NodeViewWrapper: React.FC<NodeViewWrapperProps> =
React.forwardRef((props, ref) => {
export const NodeViewWrapper: React.FC<NodeViewWrapperProps> = React.forwardRef((props, ref) => {
const { onDragStart } = useReactNodeView()
const Tag = props.as || 'div'