Skip to content

Commit 3cbd42a

Browse files
authored
Merge pull request #6742 from topcoder-platform/timeline-wall-api-32
fix: update error message modal
2 parents 6b56ed9 + 827d2b6 commit 3cbd42a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/shared/containers/timeline-wall/modal-event-add/index.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import PT from 'prop-types';
33
import { Modal } from 'topcoder-react-ui-kit';
44
import IconCloseGreen from 'assets/images/icon-close-green.svg';
55
import LoadingIndicator from 'components/LoadingIndicator';
6+
import cn from 'classnames';
67

78
import style from './styles.scss';
89

@@ -17,14 +18,17 @@ function ModalEventAdd({
1718
onCancel={onClose}
1819
>
1920
<div styleName="header">
20-
<span styleName="text-title">Confirmation</span>
21+
<span styleName="text-title">{uploadResult ? 'Error' : 'Confirmation'}</span>
2122
<button styleName="btn-close" onClick={onClose} type="button"><IconCloseGreen /></button>
2223
</div>
2324
{
2425
uploading ? (
2526
<LoadingIndicator />
2627
) : (
27-
<span styleName="text-description">
28+
<span styleName={cn('text-description', {
29+
error: !!uploadResult,
30+
})}
31+
>
2832
{
2933
uploadResult || successMessage
3034
}

src/shared/containers/timeline-wall/modal-event-add/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
strong {
4545
@include roboto-bold;
4646
}
47+
48+
&.error {
49+
color: #ef476f;
50+
}
4751
}
4852

4953
.separator {

0 commit comments

Comments
 (0)