import * as React from 'react'; import { DetailsRow, IDetailsRowBaseProps } from '@fluentui/react'; import OpenRow from '../../public-child/OpenRow'; interface DetailsProps { detailsProps: IDetailsRowBaseProps; } interface DetailsState { isExpand: boolean; } class Details extends React.Component { constructor(props: DetailsProps) { super(props); this.state = { isExpand: false }; } render(): React.ReactNode { const { detailsProps } = this.props; const { isExpand } = this.state; return (
{ this.setState(() => ({ isExpand: !isExpand })); }} >
{isExpand && }
); } } export default Details;