@mjhls/mjh-framework 1.0.16 → 1.0.17
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.
- package/dist/index.es.js +13 -13
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1023,7 +1023,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
1023
1023
|
{ as: 'li' },
|
|
1024
1024
|
React__default.createElement(
|
|
1025
1025
|
Link,
|
|
1026
|
-
{ href: subRow.url },
|
|
1026
|
+
{ href: subRow.url || '#' },
|
|
1027
1027
|
React__default.createElement(
|
|
1028
1028
|
'a',
|
|
1029
1029
|
null,
|
|
@@ -1041,7 +1041,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
1041
1041
|
{ as: 'li' },
|
|
1042
1042
|
React__default.createElement(
|
|
1043
1043
|
Link,
|
|
1044
|
-
{ href: subRow.url },
|
|
1044
|
+
{ href: subRow.url || '#' },
|
|
1045
1045
|
React__default.createElement(
|
|
1046
1046
|
'a',
|
|
1047
1047
|
null,
|
|
@@ -1346,7 +1346,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1346
1346
|
null,
|
|
1347
1347
|
React__default.createElement(
|
|
1348
1348
|
Nav.Link,
|
|
1349
|
-
{ href: '/
|
|
1349
|
+
{ href: '/subscribe' },
|
|
1350
1350
|
React__default.createElement(MdEmail, null),
|
|
1351
1351
|
' Subscribe'
|
|
1352
1352
|
)
|
|
@@ -1356,7 +1356,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1356
1356
|
null,
|
|
1357
1357
|
React__default.createElement(
|
|
1358
1358
|
Nav.Link,
|
|
1359
|
-
{ href: '/
|
|
1359
|
+
{ href: '/login' },
|
|
1360
1360
|
React__default.createElement(MdMouse, null),
|
|
1361
1361
|
' Login'
|
|
1362
1362
|
)
|
|
@@ -1388,10 +1388,10 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1388
1388
|
} else {
|
|
1389
1389
|
return React__default.createElement(
|
|
1390
1390
|
Link,
|
|
1391
|
-
{ href: ddRow.url },
|
|
1391
|
+
{ key: subIndex, href: ddRow.url || '#' },
|
|
1392
1392
|
React__default.createElement(
|
|
1393
1393
|
'a',
|
|
1394
|
-
{
|
|
1394
|
+
{ className: 'dropdown-item' },
|
|
1395
1395
|
ddRow.name
|
|
1396
1396
|
)
|
|
1397
1397
|
);
|
|
@@ -1403,10 +1403,10 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1403
1403
|
// return <Nav.Link href={row.url} key={index}>{row.name}</Nav.Link>
|
|
1404
1404
|
return React__default.createElement(
|
|
1405
1405
|
Link,
|
|
1406
|
-
{ href: row.url },
|
|
1406
|
+
{ key: index, href: row.url },
|
|
1407
1407
|
React__default.createElement(
|
|
1408
1408
|
'a',
|
|
1409
|
-
{
|
|
1409
|
+
{ className: 'nav-link' },
|
|
1410
1410
|
row.name
|
|
1411
1411
|
)
|
|
1412
1412
|
);
|
|
@@ -1461,17 +1461,17 @@ var NavNative = function NavNative(props) {
|
|
|
1461
1461
|
if (row.subQuery.length > 1) {
|
|
1462
1462
|
return React__default.createElement(
|
|
1463
1463
|
NavDropdown,
|
|
1464
|
-
{ title: row.name, id: 'basic-nav-dropdown' },
|
|
1464
|
+
{ key: index, title: row.name, id: 'basic-nav-dropdown' },
|
|
1465
1465
|
row.subQuery && row.subQuery.map(function (ddRow, subIndex) {
|
|
1466
1466
|
if (ddRow.type === 'divider') {
|
|
1467
1467
|
return React__default.createElement(NavDropdown.Divider, null);
|
|
1468
1468
|
} else {
|
|
1469
1469
|
return React__default.createElement(
|
|
1470
1470
|
Link,
|
|
1471
|
-
{ href: ddRow.url },
|
|
1471
|
+
{ key: subIndex, href: ddRow.url || '#' },
|
|
1472
1472
|
React__default.createElement(
|
|
1473
1473
|
'a',
|
|
1474
|
-
{
|
|
1474
|
+
{ className: 'dropdown-item' },
|
|
1475
1475
|
ddRow.name
|
|
1476
1476
|
)
|
|
1477
1477
|
);
|
|
@@ -1483,10 +1483,10 @@ var NavNative = function NavNative(props) {
|
|
|
1483
1483
|
// return <Nav.Link href={row.url} key={index}>{row.name}</Nav.Link>
|
|
1484
1484
|
return React__default.createElement(
|
|
1485
1485
|
Link,
|
|
1486
|
-
{ href: row.url },
|
|
1486
|
+
{ key: index, href: row.url || '#' },
|
|
1487
1487
|
React__default.createElement(
|
|
1488
1488
|
'a',
|
|
1489
|
-
{
|
|
1489
|
+
{ className: 'nav-link' },
|
|
1490
1490
|
row.name
|
|
1491
1491
|
)
|
|
1492
1492
|
);
|