-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(content-uploader): resolve ItemAction issues (#3631)
* fix: resolve ItemAction issues * fix: unit tests * fix: simplify loading indicator --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0bee28b
commit ba299b1
Showing
15 changed files
with
152 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as React from 'react'; | ||
import { useIntl } from 'react-intl'; | ||
import { LoadingIndicator } from '@box/blueprint-web'; | ||
import { IconCtaIconHover, Size5 } from '@box/blueprint-web-assets/tokens/tokens'; | ||
import { XMark } from '@box/blueprint-web-assets/icons/Fill'; | ||
import messages from '../common/messages'; | ||
|
||
const IconInProgress = () => { | ||
const { formatMessage } = useIntl(); | ||
|
||
return ( | ||
<div className="bcu-IconInProgress"> | ||
<XMark color={IconCtaIconHover} height={Size5} width={Size5} /> | ||
<LoadingIndicator aria-label={formatMessage(messages.loading)} className="bcu-IconInProgress-loading" /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default IconInProgress; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
.bcu-item-progress { | ||
.bcu-ItemProgress { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.bcu-progress-label { | ||
.bcu-ItemProgress-label { | ||
min-width: 35px; // 100% takes up 34.27px | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as React from 'react'; | ||
import ProgressBar from './ProgressBar'; | ||
import './ItemProgress.scss'; | ||
|
||
export interface ItemProgressProps { | ||
progress: number; | ||
} | ||
|
||
const ItemProgress = ({ progress }: ItemProgressProps) => ( | ||
<div className="bcu-ItemProgress"> | ||
<ProgressBar percent={progress} /> | ||
<div className="bcu-ItemProgress-label">{progress}%</div> | ||
</div> | ||
); | ||
|
||
export default ItemProgress; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.