Skip to content

Commit

Permalink
Changed help icon position in submission form
Browse files Browse the repository at this point in the history
  • Loading branch information
pushpanjalip committed Mar 23, 2020
1 parent cd3c974 commit 2aa5c62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
3 changes: 3 additions & 0 deletions src/components/Forms/Algorithm/AlgorithmSubmission.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
.right {
display: flex;
justify-content: flex-end;
margin-top: -10px;
margin-left: -20px;
cursor: pointer;
}

.inputContainer {
Expand Down
19 changes: 8 additions & 11 deletions src/components/Forms/Algorithm/AlgorithmSubmission.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
// import * as yup from 'yup';
import { Button, Fab } from '@material-ui/core';
import { Button } from '@material-ui/core';
import { Field, Form, Formik } from 'formik';
import { FormikActions } from 'formik';
import { comicApi } from 'src/services/comicApi';
Expand Down Expand Up @@ -173,15 +172,7 @@ class AlgorithmSubmission extends React.Component<IProps & IUserProps, IState> {
>
<p>{benchmark.submission_instruction}</p>
</VisualizationDialog>}
<div className={styles.right}>
<Fab
size="small"
color="secondary"
onClick={() => this.setState({ showHelp: true })}
>
<HelpIcon color="primary" />
</Fab>
</div>

{!isSaved ?
<>
<div className={styles.inputContainer}>
Expand Down Expand Up @@ -229,6 +220,12 @@ class AlgorithmSubmission extends React.Component<IProps & IUserProps, IState> {
</label>
</div>
</div>
<div className={styles.right} title="submission support">
<HelpIcon
color="primary"
onClick={() => this.setState({ showHelp: true })}
/>
</div>
<div className={styles.error}>
{!createNewAlgorithm && errors.name && touched.name && errors.name}
</div>
Expand Down

0 comments on commit 2aa5c62

Please sign in to comment.