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

fix: private challenge message #42

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
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
Next Next commit
fix: private challenge message
  • Loading branch information
dedywahyudi committed Sep 23, 2022

Verified

This commit was signed with the committer’s verified signature.
DanielSiepmann Daniel Siepmann
commit 8ed26042b0b83a1e0befc7267adc2a816b17cd9c
22 changes: 16 additions & 6 deletions src/shared/components/ErrorMessage/index.jsx
Original file line number Diff line number Diff line change
@@ -26,19 +26,28 @@ class ErrorMessage extends React.Component {
const {
title,
details,
support,
onOk,
} = this.props;

return (
<Modal theme={{ container: style.container }}>
<p styleName="title">{title}</p>
<p styleName="details">{details}</p>
<p styleName="details">
We are sorry that you have encountered this problem. Please, contact
our support &zwnj;
<a href="mailto:[email protected]">[email protected]</a>
&zwnj; to help us resolve it as soon as possible.
</p>
{
support ? (
<p styleName="details">
{support}
</p>
) : (
<p styleName="details">
We are sorry that you have encountered this problem. Please, contact
our support &zwnj;
<a href="mailto:[email protected]">[email protected]</a>
&zwnj; to help us resolve it as soon as possible.
</p>
)
}
<DangerButton
onClick={(e) => {
e.preventDefault();
@@ -59,6 +68,7 @@ ErrorMessage.defaultProps = {
ErrorMessage.propTypes = {
title: PT.string.isRequired,
details: PT.string,
support: PT.string,
onOk: PT.func.isRequired,
};