@stokr/components-library 2.3.58 → 2.3.60

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.
@@ -26,7 +26,7 @@ const MainMenuOptions = exports.MainMenuOptions = _styledComponents.default.div.
26
26
  const MainMenuOption = exports.MainMenuOption = _styledComponents.default.div.withConfig({
27
27
  displayName: "MainMenustyles__MainMenuOption",
28
28
  componentId: "sc-1cw1nhj-3"
29
- })(["background-color:white !important;position:relative;display:flex;flex-basis:33.3333%;justify-content:center;align-items:center;width:100%;padding:4px 16px;outline:none;&:hover{font-weight:bold;}", " ", " & + &{border-top:1px solid #e1e1e1;}", " ", " ", " ", " ", " span{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}button{color:#ee220d;border-color:#ee220d;background-color:white;&:hover{color:#be1b09;border-color:#be1b09;}}"], _ref => {
29
+ })(["background-color:white !important;position:relative;display:flex;flex-basis:33.3333%;justify-content:center;align-items:center;width:100%;padding:4px 16px;outline:none;&:hover{font-weight:bold;}", " ", " &{border-top:1px solid #e1e1e1;}", " ", " ", " ", " ", " span{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}button{color:#ee220d;border-color:#ee220d;background-color:white;&:hover{color:#be1b09;border-color:#be1b09;}}"], _ref => {
30
30
  let {
31
31
  isDashboard
32
32
  } = _ref;
@@ -36,7 +36,7 @@ const MainMenuOption = exports.MainMenuOption = _styledComponents.default.div.wi
36
36
  isSettings
37
37
  } = _ref2;
38
38
  return isSettings && (0, _styledComponents.css)(["border-right:none !important;"]);
39
- }, _rwd.default.Medium(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 10px;\n border-bottom: 1px solid #e1e1e1;\n margin-bottom: -1px;\n transition: border-bottom-color .2s;\n\n & + & {\n border-top: 0;\n border-left: 1px solid #e1e1e1;\n\n ", "\n }\n\n ", ";\n\n ", "\n\n ", "\n\n "])), _ref3 => {
39
+ }, _rwd.default.Medium(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 10px;\n border-bottom: 1px solid #e1e1e1;\n margin-bottom: -1px;\n transition: border-bottom-color .2s;\n\n & {\n border-top: 0;\n border-left: 1px solid #e1e1e1;\n\n ", "\n }\n\n ", ";\n\n ", "\n\n ", "\n\n "])), _ref3 => {
40
40
  let {
41
41
  isDashboard
42
42
  } = _ref3;
@@ -6,8 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = exports.checkTodoStatus = void 0;
7
7
  var _checklistGenerator = require("./checklistGenerator");
8
8
  const checkTodoStatus = user => {
9
- const coreTasks = (0, _checklistGenerator.generateCoreChecklistTasks)(user);
10
- return coreTasks.remainingCount;
9
+ if (user.user_type === 'investor' || user.user_type === 'investor-entity') {
10
+ const coreTasks = (0, _checklistGenerator.generateCoreChecklistTasks)(user);
11
+ return coreTasks.remainingCount;
12
+ } else return 0;
11
13
  };
12
14
  exports.checkTodoStatus = checkTodoStatus;
13
15
  var _default = exports.default = checkTodoStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "2.3.58",
3
+ "version": "2.3.60",
4
4
  "description": "STOKR - Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",