fix children property not being defined in React.FC type

This commit is contained in:
Dany Castillo
2022-04-11 10:45:50 +02:00
committed by bdbch
parent 55d458f893
commit a6fd827d31
2 changed files with 4 additions and 2 deletions

View File

@@ -7,9 +7,10 @@ type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>
export type BubbleMenuProps = Omit<Optional<BubbleMenuPluginProps, 'pluginKey'>, 'element'> & {
className?: string,
children: React.ReactNode
}
export const BubbleMenu: React.FC<BubbleMenuProps> = props => {
export const BubbleMenu = (props: BubbleMenuProps) => {
const [element, setElement] = useState<HTMLDivElement | null>(null)
useEffect(() => {