@mjhls/mjh-framework 1.0.109-8.bc1 → 1.0.109-8.bc2

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.
@@ -35,12 +35,18 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
35
35
  setParentPathName = _useState6[1];
36
36
 
37
37
  console.log("DATA", data);
38
+ console.log("currentPath", currentPath);
39
+ console.log("parentPathName", parentPathName);
40
+ console.log("parentPath", parentPath);
41
+
38
42
  var get_parent_path = function get_parent_path(parsedUrl) {
39
43
  console.log("parsedUrl", parsedUrl);
40
44
  var parent_path = '';
41
- // console.log("======",`${parsedUrl[parsedUrl.length - (i + 1)]}` + (parent_path ? `/${parent_path}` : ''))
42
45
  for (var i = 1; i < parsedUrl.length - 3; i++) {
43
46
  if (parsedUrl.length > i + 1) {
47
+ console.log("parentPathin IF", parentPath);
48
+
49
+ console.log("======", '' + parsedUrl[parsedUrl.length - (i + 1)] + (parent_path ? '/' + parent_path : ''));
44
50
  parent_path = '' + parsedUrl[parsedUrl.length - (i + 1)] + (parent_path ? '/' + parent_path : '');
45
51
  }
46
52
  }
@@ -54,6 +60,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
54
60
  setParentPathName(parsedUrl[parsedUrl.length - 2].split('?')[0]);
55
61
  setParentPath(get_parent_path(parsedUrl));
56
62
  }, []);
63
+ console.log("parentPathin AFTER", parentPath);
57
64
 
58
65
  if (data && data.length > 0) {
59
66
  return React__default["default"].createElement(
@@ -62,7 +69,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
62
69
  data.map(function (item, index) {
63
70
  return React__default["default"].createElement(
64
71
  Breadcrumb__default["default"].Item,
65
- { key: index, href: item.url, active: item.isActive || false },
72
+ { key: index, href: item.url, className: 'HI', active: item.isActive || false },
66
73
  item.name
67
74
  );
68
75
  }),
@@ -28,12 +28,18 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
28
28
  setParentPathName = _useState6[1];
29
29
 
30
30
  console.log("DATA", data);
31
+ console.log("currentPath", currentPath);
32
+ console.log("parentPathName", parentPathName);
33
+ console.log("parentPath", parentPath);
34
+
31
35
  var get_parent_path = function get_parent_path(parsedUrl) {
32
36
  console.log("parsedUrl", parsedUrl);
33
37
  var parent_path = '';
34
- // console.log("======",`${parsedUrl[parsedUrl.length - (i + 1)]}` + (parent_path ? `/${parent_path}` : ''))
35
38
  for (var i = 1; i < parsedUrl.length - 3; i++) {
36
39
  if (parsedUrl.length > i + 1) {
40
+ console.log("parentPathin IF", parentPath);
41
+
42
+ console.log("======", '' + parsedUrl[parsedUrl.length - (i + 1)] + (parent_path ? '/' + parent_path : ''));
37
43
  parent_path = '' + parsedUrl[parsedUrl.length - (i + 1)] + (parent_path ? '/' + parent_path : '');
38
44
  }
39
45
  }
@@ -47,6 +53,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
47
53
  setParentPathName(parsedUrl[parsedUrl.length - 2].split('?')[0]);
48
54
  setParentPath(get_parent_path(parsedUrl));
49
55
  }, []);
56
+ console.log("parentPathin AFTER", parentPath);
50
57
 
51
58
  if (data && data.length > 0) {
52
59
  return React__default.createElement(
@@ -55,7 +62,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
55
62
  data.map(function (item, index) {
56
63
  return React__default.createElement(
57
64
  Breadcrumb.Item,
58
- { key: index, href: item.url, active: item.isActive || false },
65
+ { key: index, href: item.url, className: 'HI', active: item.isActive || false },
59
66
  item.name
60
67
  );
61
68
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.1098.bc1",
3
+ "version": "1.0.1098.bc2",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",