This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed
src/shared/components/ErrorMessage Expand file tree Collapse file tree 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 {
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 ‌
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+ }
4251 < DangerButton
4352 onClick = { ( e ) => {
4453 e . preventDefault ( ) ;
@@ -59,6 +68,7 @@ ErrorMessage.defaultProps = {
5968ErrorMessage . propTypes = {
6069 title : PT . string . isRequired ,
6170 details : PT . string ,
71+ support : PT . string ,
6272 onOk : PT . func . isRequired ,
6373} ;
6474
You can’t perform that action at this time.
0 commit comments