diff --git a/.circleci/config.yml b/.circleci/config.yml index 12c0931..4184c8e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/package.json b/package.json index d0f3bee..c6dc4b4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/shared/components/ErrorMessage/index.jsx b/src/shared/components/ErrorMessage/index.jsx index 7832a1a..e5ddb2c 100644 --- a/src/shared/components/ErrorMessage/index.jsx +++ b/src/shared/components/ErrorMessage/index.jsx @@ -26,6 +26,7 @@ class ErrorMessage extends React.Component { const { title, details, + support, onOk, } = this.props; @@ -33,12 +34,20 @@ class ErrorMessage extends React.Component {

{title}

{details}

-

- We are sorry that you have encountered this problem. Please, contact - our support ‌ - support@topcoder.com - ‌ to help us resolve it as soon as possible. -

+ { + support ? ( +

+ {support} +

+ ) : ( +

+ We are sorry that you have encountered this problem. Please, contact + our support ‌ + support@topcoder.com + ‌ to help us resolve it as soon as possible. +

+ ) + } { e.preventDefault(); @@ -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, };