Skip to content

fix: update error message modal #6742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PT from 'prop-types';
import { Modal } from 'topcoder-react-ui-kit';
import IconCloseGreen from 'assets/images/icon-close-green.svg';
import LoadingIndicator from 'components/LoadingIndicator';
import cn from 'classnames';

import style from './styles.scss';

Expand All @@ -17,14 +18,17 @@ function ModalEventAdd({
onCancel={onClose}
>
<div styleName="header">
<span styleName="text-title">Confirmation</span>
<span styleName="text-title">{uploadResult ? 'Error' : 'Confirmation'}</span>
<button styleName="btn-close" onClick={onClose} type="button"><IconCloseGreen /></button>
</div>
{
uploading ? (
<LoadingIndicator />
) : (
<span styleName="text-description">
<span styleName={cn('text-description', {
error: !!uploadResult,
})}
>
{
uploadResult || successMessage
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
strong {
@include roboto-bold;
}

&.error {
color: #ef476f;
}
}

.separator {
Expand Down