Skip to content

Commit

Permalink
fix: make as prop optional
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Apr 8, 2021
1 parent 536663f commit f8dec5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/NodeViewContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'

export interface NodeViewContentProps {
className?: string,
as: React.ElementType,
as?: React.ElementType,
}

export const NodeViewContent: React.FC<NodeViewContentProps> = props => {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/NodeViewWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useReactNodeView } from './useReactNodeView'

export interface NodeViewWrapperProps {
className?: string,
as: React.ElementType,
as?: React.ElementType,
}

export const NodeViewWrapper: React.FC<NodeViewWrapperProps> = props => {
Expand Down

0 comments on commit f8dec5f

Please sign in to comment.