Skip to content

Commit

Permalink
fix(transcripts): #105 Remove cancel upload button
Browse files Browse the repository at this point in the history
  • Loading branch information
allishultes committed May 27, 2021
1 parent a7a4b64 commit a69c089
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/TranscriptRow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
faEllipsisV,
faCheckCircle,
faHourglassEnd,
faTimes
} from '@fortawesome/free-solid-svg-icons';

const TranscriptRow = (props) => {
Expand All @@ -33,10 +32,6 @@ const TranscriptRow = (props) => {
props.handleEditItem(props.id);
};

const handleCancelUpload = () => {
props.handleCancelItemUpload(props.id);
};

const HeaderRow = ({ children }) => {
return (
<Row style={ { lineHeight: '100%', marginTop: '0.5rem' } }>
Expand Down Expand Up @@ -134,22 +129,14 @@ const TranscriptRow = (props) => {
<FontAwesomeIcon icon={ faExclamationTriangle } /> This file will be automatically deleted after 60 days.
{typeof props.progress === 'number' ? (
<Row style={ { display: 'flex' } }>
<Col xs={ 8 } sm={ 9 }>
<Col xs={ 12 } sm={ 12 }>
<div style={ { display: 'flex' } }>
<span style={ { marginRight: '0.4rem' } }>Uploading...</span>
<ProgressBar
progress={ props.progress }
/>
</div>
</Col>
<Col xs={ 2 } sm={ 1 }>
<FontAwesomeIcon
icon={ faTimes }
onClick={ handleCancelUpload }
style={ {
marginLeft: '0.4rem'
} }/>
</Col>
</Row>
) : null}
</MessageRow>
Expand Down

0 comments on commit a69c089

Please sign in to comment.