chore: properly use primitive type over wrapper (#21178)

This commit is contained in:
Mateusz Burzyński 2023-02-24 11:50:06 +01:00 committed by GitHub
parent a031cec159
commit 03da0609ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ import * as React from 'react';
export const Expandable: React.FunctionComponent<React.PropsWithChildren<{
title: JSX.Element | string,
setExpanded: Function,
expanded: Boolean,
expanded: boolean,
style?: React.CSSProperties,
}>> = ({ title, children, setExpanded, expanded, style }) => {
return <div style={{ ...style, display: 'flex', flexDirection: 'column' }}>