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
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
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- attach_workspace:
at: .
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: npm publish
- run: npm publish --tag test-release

workflows:
version: 2
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lint:scss": "./node_modules/.bin/stylelint **/*.scss --syntax scss",
"test": "npm run lint && npm run jest"
},
"version": "2.0.1",
"version": "1000.1.2",
"dependencies": {
"prop-types": "^15.6.2",
"react": "^16.4.1",
Expand Down
23 changes: 17 additions & 6 deletions src/shared/components/ErrorMessage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -54,11 +63,13 @@ class ErrorMessage extends React.Component {

ErrorMessage.defaultProps = {
details: '',
support: '',
};

ErrorMessage.propTypes = {
title: PT.string.isRequired,
details: PT.string,
support: PT.string,
onOk: PT.func.isRequired,
};

Expand Down