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> { ...@@ -120,7 +120,7 @@ class Overview extends React.Component<OverviewProps, OverviewState> {
</div> </div>
</Stack> </Stack>
<Stack horizontal tokens={stackTokens}> <Stack horizontal tokens={stackTokens}>
<div style={{ width: '40%'}}> <div style={{ width: '40%', position: 'relative'}}>
<Accuracy <Accuracy
accuracyData={accuracyGraphData} accuracyData={accuracyGraphData}
accNodata={noDataMessage} accNodata={noDataMessage}
......
...@@ -113,6 +113,11 @@ class SuccessTable extends React.Component<SuccessTableProps, SuccessTableState> ...@@ -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 { render(): React.ReactNode {
const { columns, source } = this.state; const { columns, source } = this.state;
return ( return (
......
...@@ -57,3 +57,11 @@ ...@@ -57,3 +57,11 @@
font-size: 14px; 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