This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 1 file changed +16
-6
lines changed
src/shared/components/ErrorMessage
1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -26,19 +26,28 @@ class ErrorMessage extends React.Component {
26
26
const {
27
27
title,
28
28
details,
29
+ support,
29
30
onOk,
30
31
} = this . props ;
31
32
32
33
return (
33
34
< Modal theme = { { container : style . container } } >
34
35
< p styleName = "title" > { title } </ p >
35
36
< p styleName = "details" > { details } </ p >
36
- < p styleName = "details" >
37
- We are sorry that you have encountered this problem. Please, contact
38
- our support ‌
39
- < a href = "mailto:support@topcoder.com" > support@topcoder.com</ a >
40
- ‌ 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 ‌
46
+ < a href = "mailto:support@topcoder.com" > support@topcoder.com</ a >
47
+ ‌ to help us resolve it as soon as possible.
48
+ </ p >
49
+ )
50
+ }
42
51
< DangerButton
43
52
onClick = { ( e ) => {
44
53
e . preventDefault ( ) ;
@@ -59,6 +68,7 @@ ErrorMessage.defaultProps = {
59
68
ErrorMessage . propTypes = {
60
69
title : PT . string . isRequired ,
61
70
details : PT . string ,
71
+ support : PT . string ,
62
72
onOk : PT . func . isRequired ,
63
73
} ;
64
74
You can’t perform that action at this time.
0 commit comments