import * as React from 'react'; import PaiTrialLog from '../public-child/PaiTrialLog'; import TrialLog from '../public-child/TrialLog'; import JSONTree from 'react-json-tree'; import { TableObj } from '../../static/interface'; import { Row, Tabs } from 'antd'; const TabPane = Tabs.TabPane; interface OpenRowProps { trainingPlatform: string; showLogModalOverview: Function; record: TableObj; } class OpenRow extends React.Component { constructor(props: OpenRowProps) { super(props); } render() { const { trainingPlatform, record, showLogModalOverview } = this.props; let isHasParameters = true; if (record.description.parameters.error) { isHasParameters = false; } const openRowDataSource = { parameters: record.description.parameters }; const logPathRow = record.description.logPath !== undefined ? record.description.logPath : 'This trial\'s logPath are not available.'; return (
                
                    
                        
                            {
                                isHasParameters
                                    ?
                                     true}  // default expandNode
                                        getItemString={() => ()}  // remove the {} items
                                        data={openRowDataSource}
                                    />
                                    :
                                    
Error: 'This trial's parameters are not available.'
}
{ trainingPlatform === 'pai' || trainingPlatform === 'kubeflow' || trainingPlatform === 'frameworkcontroller' ? : }
); } } export default OpenRow;