"src/targets/vscode:/vscode.git/clone" did not exist on "dd33a45fae519227d620c54a0ba8ba22445d3163"
ExpandableDetails.tsx 630 Bytes
Newer Older
1
2
import * as React from 'react';
import { DetailsRow, IDetailsRowBaseProps } from '@fluentui/react';
Lijiaoa's avatar
Lijiaoa committed
3
import OpenRow from './OpenRow';
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

interface ExpandableDetailsProps {
    detailsProps: IDetailsRowBaseProps;
    isExpand: boolean;
}

class ExpandableDetails extends React.Component<ExpandableDetailsProps, {}> {
    render(): React.ReactNode {
        const { detailsProps, isExpand } = this.props;
        return (
            <div>
                <DetailsRow {...detailsProps} />
                {isExpand && <OpenRow trialId={detailsProps.item.id} />}
            </div>
        );
    }
}

export default ExpandableDetails;