Unverified Commit a7b5f3b4 authored by Lijiaoa's avatar Lijiaoa Committed by GitHub
Browse files

update succeed table in time (#2103)

parent e862d39e
......@@ -120,7 +120,7 @@ class Overview extends React.Component<OverviewProps, OverviewState> {
</div>
</Stack>
<Stack horizontal tokens={stackTokens}>
<div style={{ width: '40%'}}>
<div style={{ width: '40%', position: 'relative'}}>
<Accuracy
accuracyData={accuracyGraphData}
accNodata={noDataMessage}
......
......@@ -113,6 +113,11 @@ class SuccessTable extends React.Component<SuccessTableProps, SuccessTableState>
}
];
componentWillReceiveProps(nextProps: SuccessTableProps): void {
const { trialIds } = nextProps;
this.setState(() => ({ source: TRIALS.table(trialIds) }));
}
render(): React.ReactNode {
const { columns, source } = this.state;
return (
......
......@@ -56,4 +56,12 @@
color: #333;
font-size: 14px;
}
}
/* overview-succeed-graph */
.showMess{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment