File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/shared/containers/timeline-wall/modal-event-add Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import PT from 'prop-types';
3
3
import { Modal } from 'topcoder-react-ui-kit' ;
4
4
import IconCloseGreen from 'assets/images/icon-close-green.svg' ;
5
5
import LoadingIndicator from 'components/LoadingIndicator' ;
6
+ import cn from 'classnames' ;
6
7
7
8
import style from './styles.scss' ;
8
9
@@ -17,14 +18,17 @@ function ModalEventAdd({
17
18
onCancel = { onClose }
18
19
>
19
20
< div styleName = "header" >
20
- < span styleName = "text-title" > Confirmation</ span >
21
+ < span styleName = "text-title" > { uploadResult ? 'Error' : ' Confirmation' } </ span >
21
22
< button styleName = "btn-close" onClick = { onClose } type = "button" > < IconCloseGreen /> </ button >
22
23
</ div >
23
24
{
24
25
uploading ? (
25
26
< LoadingIndicator />
26
27
) : (
27
- < span styleName = "text-description" >
28
+ < span styleName = { cn ( 'text-description' , {
29
+ error : ! ! uploadResult ,
30
+ } ) }
31
+ >
28
32
{
29
33
uploadResult || successMessage
30
34
}
Original file line number Diff line number Diff line change 44
44
strong {
45
45
@include roboto-bold ;
46
46
}
47
+
48
+ & .error {
49
+ color : #ef476f ;
50
+ }
47
51
}
48
52
49
53
.separator {
You can’t perform that action at this time.
0 commit comments