Skip to content

Commit

Permalink
Added dynamic submission_instructions in pop-up
Browse files Browse the repository at this point in the history
  • Loading branch information
pushpanjalip committed Mar 20, 2020
1 parent 458271c commit cd3c974
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Forms/Algorithm/AlgorithmSubmission.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ class AlgorithmSubmission extends React.Component<IProps & IUserProps, IState> {
}
render() {
const { usersAlgorithms, createNewAlgorithm, version, isSaved, showHelp } = this.state;
const { benchmark } = this.props;
const initialValues: IValues = {
algorithm: '',
name: '',
Expand All @@ -167,9 +168,10 @@ class AlgorithmSubmission extends React.Component<IProps & IUserProps, IState> {
<VisualizationDialog
title="How to create submission?"
print={false}
maxWidth={'sm'}
onClose={() => this.setState({ showHelp: false })}
>
<p>Demo</p>
<p>{benchmark.submission_instruction}</p>
</VisualizationDialog>}
<div className={styles.right}>
<Fab
Expand Down

0 comments on commit cd3c974

Please sign in to comment.