umwd-components 0.1.14 → 0.1.16
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.
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
|
12
|
-
var React
|
|
12
|
+
var React = require('react');
|
|
13
13
|
var Link = require('next/link');
|
|
14
14
|
var material = require('@mui/material');
|
|
15
15
|
var CloseIcon = require('@mui/icons-material/Close');
|
|
@@ -22,7 +22,7 @@ function NavBar({
|
|
|
22
22
|
}) {
|
|
23
23
|
// handleMobileMenu
|
|
24
24
|
|
|
25
|
-
const [mobileNavOpen, setMobileNavOpen] = React
|
|
25
|
+
const [mobileNavOpen, setMobileNavOpen] = React.useState(false);
|
|
26
26
|
const handleOpenMobileMenu = e => {
|
|
27
27
|
setMobileNavOpen(true);
|
|
28
28
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import React from 'react';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import { AppBar, Container, Toolbar, Box, Typography, Button, Dialog, List, ListItem, ListItemText, Divider } from '@mui/material';
|
|
11
11
|
import CloseIcon from '@mui/icons-material/Close';
|
|
@@ -18,7 +18,7 @@ function NavBar({
|
|
|
18
18
|
}) {
|
|
19
19
|
// handleMobileMenu
|
|
20
20
|
|
|
21
|
-
const [mobileNavOpen, setMobileNavOpen] = useState(false);
|
|
21
|
+
const [mobileNavOpen, setMobileNavOpen] = React.useState(false);
|
|
22
22
|
const handleOpenMobileMenu = e => {
|
|
23
23
|
setMobileNavOpen(true);
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "umwd-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "UMWD Component library",
|
|
5
|
-
"main": "dist/cjs/
|
|
6
|
-
"module": "dist/esm/
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"storybook": "storybook dev -p 6006",
|
|
9
9
|
"build-storybook": "storybook build",
|
package/src/components/NavBar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import React from "react";
|
|
4
4
|
import Link from "next/link";
|
|
5
5
|
|
|
6
6
|
import {
|
|
@@ -23,7 +23,7 @@ import MoreVertIcon from "@mui/icons-material/MoreVert";
|
|
|
23
23
|
function NavBar({site_title, logo, pages}){
|
|
24
24
|
// handleMobileMenu
|
|
25
25
|
|
|
26
|
-
const [mobileNavOpen, setMobileNavOpen] = useState(false);
|
|
26
|
+
const [mobileNavOpen, setMobileNavOpen] = React.useState(false);
|
|
27
27
|
|
|
28
28
|
const handleOpenMobileMenu = (e) => {
|
|
29
29
|
setMobileNavOpen(true);
|