Skip to content

Commit 212809d

Browse files
committed
fix: converted download artifacts button to icon
1 parent 6ab92b8 commit 212809d

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed
Lines changed: 1 addition & 0 deletions
Loading

src/components/ChallengeEditor/Submissions/index.js

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import PT from 'prop-types'
88
import moment from 'moment'
99
import _ from 'lodash'
1010
import { STUDIO_URL, SUBMISSION_REVIEW_APP_URL, getTCMemberURL } from '../../../config/constants'
11-
import { OutlineButton, PrimaryButton } from '../../Buttons'
11+
import { PrimaryButton } from '../../Buttons'
1212
import AlertModal from '../../Modal/AlertModal'
1313
import cn from 'classnames'
1414
import ReactSVG from 'react-svg'
@@ -30,10 +30,12 @@ import {
3030
import styles from './Submissions.module.scss'
3131
import modalStyles from '../../../styles/modal.module.scss'
3232
import { ArtifactsListModal } from '../ArtifactsListModal'
33+
import Tooltip from '../../Tooltip'
3334
const assets = require.context('../../../assets/images', false, /svg/)
3435
const ArrowDown = './arrow-down.svg'
3536
const Lock = './lock.svg'
3637
const Download = './IconSquareDownload.svg'
38+
const DownloadArtifact = './IconDownloadArtifacts.svg'
3739

3840
const theme = {
3941
container: modalStyles.modalContainer
@@ -585,21 +587,25 @@ class SubmissionsComponent extends React.Component {
585587
</td>
586588
{canDownloadSubmission ? (<td className={cn(styles['col-8Table'], styles['col-bodyTable'])}>
587589
<div className={styles['button-wrapper']}>
588-
<button
589-
className={styles['download-submission-button']}
590-
onClick={() => this.downloadSubmission(s)}
591-
>
592-
<ReactSVG path={assets(`${Download}`)} />
593-
</button>
594-
595-
<OutlineButton
596-
text='Download Artifacts'
597-
type='info'
598-
className={styles['download-artifacts-button']}
599-
onClick={async () => {
600-
this.setState({ selectedSubmissionId: s.id })
601-
}}
602-
/>
590+
<Tooltip content='Download Submission'>
591+
<button
592+
className={styles['download-submission-button']}
593+
onClick={() => this.downloadSubmission(s)}
594+
>
595+
<ReactSVG path={assets(`${Download}`)} />
596+
</button>
597+
</Tooltip>
598+
599+
<Tooltip content='Download Submission Artifacts'>
600+
<button
601+
className={styles['download-submission-button']}
602+
onClick={async () => {
603+
this.setState({ selectedSubmissionId: s.id })
604+
}}
605+
>
606+
<ReactSVG path={assets(`${DownloadArtifact}`)} />
607+
</button>
608+
</Tooltip>
603609
</div>
604610
</td>) : null}
605611
</tr>

0 commit comments

Comments
 (0)