Skip to content

Commit

Permalink
Alex krasn/fix model info enclosing element error on #407 (#408)
Browse files Browse the repository at this point in the history
* fix: add fragment

* fix: deletes unnecessary whitespaces
  • Loading branch information
alex-krasn authored Jul 13, 2020
1 parent 030b922 commit 8cc421c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/react/components/pages/train/trainRecord.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ export interface ITrainRecordProps {
};
}

export interface ITrainRecordState {}
export interface ITrainRecordState { }

export default class TrainRecord extends React.Component<ITrainRecordProps, ITrainRecordState> {
public render() {
return (
<aside className="mt-3">
<h5> Model information </h5>
<h5>Model information</h5>
<div>
<h6> Model ID: </h6>
<h6>Model ID:</h6>
<p>
{this.props.modelInfo.modelId}
</p>
{this.props.modelInfo.modelName &&
[
<h6> Model Name: </h6>,
<>
<h6>Model Name:</h6>
<p>
{this.props.modelInfo.modelName}
</p>
]
</>
}
<h6> Created date and time: </h6>
<h6>Created date and time:</h6>
<p>
{new Date(this.props.modelInfo.createdDateTime).toLocaleString()}
</p>
<h6> Average accuracy: </h6>
<h6>Average accuracy:</h6>
<p>
{(this.props.averageAccuracy * 100).toFixed(2) + "%"}
</p>
Expand Down

0 comments on commit 8cc421c

Please sign in to comment.