@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.es.js
CHANGED
|
@@ -1016,7 +1016,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
1016
1016
|
{ as: 'li' },
|
|
1017
1017
|
React__default.createElement(
|
|
1018
1018
|
Link,
|
|
1019
|
-
{ href: subRow.url },
|
|
1019
|
+
{ href: subRow.url || '#' },
|
|
1020
1020
|
React__default.createElement(
|
|
1021
1021
|
'a',
|
|
1022
1022
|
null,
|
|
@@ -1034,7 +1034,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
1034
1034
|
{ as: 'li' },
|
|
1035
1035
|
React__default.createElement(
|
|
1036
1036
|
Link,
|
|
1037
|
-
{ href: subRow.url },
|
|
1037
|
+
{ href: subRow.url || '#' },
|
|
1038
1038
|
React__default.createElement(
|
|
1039
1039
|
'a',
|
|
1040
1040
|
null,
|
|
@@ -1339,7 +1339,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1339
1339
|
null,
|
|
1340
1340
|
React__default.createElement(
|
|
1341
1341
|
Nav.Link,
|
|
1342
|
-
{ href: '/
|
|
1342
|
+
{ href: '/subscribe' },
|
|
1343
1343
|
React__default.createElement(MdEmail, null),
|
|
1344
1344
|
' Subscribe'
|
|
1345
1345
|
)
|
|
@@ -1349,7 +1349,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1349
1349
|
null,
|
|
1350
1350
|
React__default.createElement(
|
|
1351
1351
|
Nav.Link,
|
|
1352
|
-
{ href: '/
|
|
1352
|
+
{ href: '/login' },
|
|
1353
1353
|
React__default.createElement(MdMouse, null),
|
|
1354
1354
|
' Login'
|
|
1355
1355
|
)
|
|
@@ -1381,10 +1381,10 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1381
1381
|
} else {
|
|
1382
1382
|
return React__default.createElement(
|
|
1383
1383
|
Link,
|
|
1384
|
-
{ href: ddRow.url },
|
|
1384
|
+
{ key: subIndex, href: ddRow.url || '#' },
|
|
1385
1385
|
React__default.createElement(
|
|
1386
1386
|
'a',
|
|
1387
|
-
{
|
|
1387
|
+
{ className: 'dropdown-item' },
|
|
1388
1388
|
ddRow.name
|
|
1389
1389
|
)
|
|
1390
1390
|
);
|
|
@@ -1396,10 +1396,10 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1396
1396
|
// return <Nav.Link href={row.url} key={index}>{row.name}</Nav.Link>
|
|
1397
1397
|
return React__default.createElement(
|
|
1398
1398
|
Link,
|
|
1399
|
-
{ href: row.url },
|
|
1399
|
+
{ key: index, href: row.url },
|
|
1400
1400
|
React__default.createElement(
|
|
1401
1401
|
'a',
|
|
1402
|
-
{
|
|
1402
|
+
{ className: 'nav-link' },
|
|
1403
1403
|
row.name
|
|
1404
1404
|
)
|
|
1405
1405
|
);
|
|
@@ -1454,17 +1454,17 @@ var NavNative = function NavNative(props) {
|
|
|
1454
1454
|
if (row.subQuery.length > 1) {
|
|
1455
1455
|
return React__default.createElement(
|
|
1456
1456
|
NavDropdown,
|
|
1457
|
-
{ title: row.name, id: 'basic-nav-dropdown' },
|
|
1457
|
+
{ key: index, title: row.name, id: 'basic-nav-dropdown' },
|
|
1458
1458
|
row.subQuery && row.subQuery.map(function (ddRow, subIndex) {
|
|
1459
1459
|
if (ddRow.type === 'divider') {
|
|
1460
1460
|
return React__default.createElement(NavDropdown.Divider, null);
|
|
1461
1461
|
} else {
|
|
1462
1462
|
return React__default.createElement(
|
|
1463
1463
|
Link,
|
|
1464
|
-
{ href: ddRow.url },
|
|
1464
|
+
{ key: subIndex, href: ddRow.url || '#' },
|
|
1465
1465
|
React__default.createElement(
|
|
1466
1466
|
'a',
|
|
1467
|
-
{
|
|
1467
|
+
{ className: 'dropdown-item' },
|
|
1468
1468
|
ddRow.name
|
|
1469
1469
|
)
|
|
1470
1470
|
);
|
|
@@ -1476,10 +1476,10 @@ var NavNative = function NavNative(props) {
|
|
|
1476
1476
|
// return <Nav.Link href={row.url} key={index}>{row.name}</Nav.Link>
|
|
1477
1477
|
return React__default.createElement(
|
|
1478
1478
|
Link,
|
|
1479
|
-
{ href: row.url },
|
|
1479
|
+
{ key: index, href: row.url || '#' },
|
|
1480
1480
|
React__default.createElement(
|
|
1481
1481
|
'a',
|
|
1482
|
-
{
|
|
1482
|
+
{ className: 'nav-link' },
|
|
1483
1483
|
row.name
|
|
1484
1484
|
)
|
|
1485
1485
|
);
|