Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 8ed2604

Browse files
committed
fix: private challenge message
1 parent cd04bd6 commit 8ed2604

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

Diff for: src/shared/components/ErrorMessage/index.jsx

+16-6
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,28 @@ class ErrorMessage extends React.Component {
2626
const {
2727
title,
2828
details,
29+
support,
2930
onOk,
3031
} = this.props;
3132

3233
return (
3334
<Modal theme={{ container: style.container }}>
3435
<p styleName="title">{title}</p>
3536
<p styleName="details">{details}</p>
36-
<p styleName="details">
37-
We are sorry that you have encountered this problem. Please, contact
38-
our support &zwnj;
39-
40-
&zwnj; to help us resolve it as soon as possible.
41-
</p>
37+
{
38+
support ? (
39+
<p styleName="details">
40+
{support}
41+
</p>
42+
) : (
43+
<p styleName="details">
44+
We are sorry that you have encountered this problem. Please, contact
45+
our support &zwnj;
46+
47+
&zwnj; to help us resolve it as soon as possible.
48+
</p>
49+
)
50+
}
4251
<DangerButton
4352
onClick={(e) => {
4453
e.preventDefault();
@@ -59,6 +68,7 @@ ErrorMessage.defaultProps = {
5968
ErrorMessage.propTypes = {
6069
title: PT.string.isRequired,
6170
details: PT.string,
71+
support: PT.string,
6272
onOk: PT.func.isRequired,
6373
};
6474

0 commit comments

Comments
 (0)