@stokr/components-library 0.9.5 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -206,7 +206,7 @@ var HeaderWithProgressSignup = Template.bind({});
206
206
  exports.HeaderWithProgressSignup = HeaderWithProgressSignup;
207
207
  HeaderWithProgressSignup.args = {
208
208
  user: _objectSpread(_objectSpread({}, userDev), {}, {
209
- kyc_status: 'Draft'
209
+ kyc_status: 'Rejected'
210
210
  }),
211
211
  progress: {},
212
212
  signupFlow: true
@@ -25,12 +25,11 @@ var StepsProgressSignup = function StepsProgressSignup(props) {
25
25
  taxId = user.taxId,
26
26
  _user$wallets = user.wallets,
27
27
  wallets = _user$wallets === void 0 ? [] : _user$wallets;
28
- var isKYCPendingOrApproved = kyc_status === 'Pending' || kyc_status === 'Approved' || kyc_status === 'Accepted';
29
- var isPoAPendingOrApproved = KYCDocuments.status === 'Pending' || KYCDocuments.status === 'Approved';
28
+ var isKYCRejected = !kyc_status || kyc_status === 'Reaply' || kyc_status === 'Draft';
30
29
  var hasLiquidWallet = (wallets === null || wallets === void 0 ? void 0 : wallets.filter(function (wallet) {
31
30
  return wallet.type === _globalVariables.walletTypes.LIQUID;
32
31
  }).length) > 0;
33
- var areAllDoneInvestor = !!country && isKYCPendingOrApproved && isPoAPendingOrApproved && hasLiquidWallet && !!taxId && !!is_risk_questionnaire_finished;
32
+ var areAllDoneInvestor = !!country && !isKYCRejected && hasLiquidWallet && !!taxId && !!is_risk_questionnaire_finished;
34
33
  var areAllDoneEntity = hasLiquidWallet && !!is_risk_questionnaire_finished;
35
34
  var isActiveStep = function isActiveStep(path) {
36
35
  return window.location.pathname.includes(path);
@@ -75,7 +74,7 @@ var StepsProgressSignup = function StepsProgressSignup(props) {
75
74
  handleClick: function handleClick() {
76
75
  return navigate('/verify-identity');
77
76
  },
78
- isDone: isKYCPendingOrApproved && isPoAPendingOrApproved,
77
+ isDone: !isKYCRejected,
79
78
  isActive: isActiveStep('/verify-identity')
80
79
  }, {
81
80
  id: 'taxId',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "description": "STOKR - Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -25,7 +25,8 @@
25
25
  "start": "npm run storybook",
26
26
  "chromatic": "CHROMATIC_APP_CODE=7kzdke5umep chromatic",
27
27
  "release": "auto shipit",
28
- "pub": "rm -rf ./dist && npm publish --access public"
28
+ "pub": "rm -rf ./dist && npm publish --access public",
29
+ "start:script": "react-scripts start"
29
30
  },
30
31
  "dependencies": {
31
32
  "@fortawesome/fontawesome-svg-core": "^6.3.0",