umwd-components 0.1.57 → 0.1.58
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.
|
@@ -60,8 +60,12 @@ function NavBar(_ref) {
|
|
|
60
60
|
console.log(newValue);
|
|
61
61
|
setCurrentTab(newValue);
|
|
62
62
|
};
|
|
63
|
+
const theme = material.useTheme();
|
|
63
64
|
return /*#__PURE__*/React.createElement(material.AppBar, {
|
|
64
|
-
position: "sticky"
|
|
65
|
+
position: "sticky",
|
|
66
|
+
sx: {
|
|
67
|
+
backgroundColor: theme.palette.primary.main
|
|
68
|
+
}
|
|
65
69
|
}, /*#__PURE__*/React.createElement(material.Container, {
|
|
66
70
|
maxWidth: maxWidth
|
|
67
71
|
}, /*#__PURE__*/React.createElement(material.Toolbar, {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import Image from 'next/image';
|
|
11
|
-
import { AppBar, Container, Toolbar, Box, Typography, Button, Tabs, Tab, Dialog, List, ListItem, ListItemText, Divider } from '@mui/material';
|
|
11
|
+
import { useTheme, AppBar, Container, Toolbar, Box, Typography, Button, Tabs, Tab, Dialog, List, ListItem, ListItemText, Divider } from '@mui/material';
|
|
12
12
|
import CloseIcon from '@mui/icons-material/Close';
|
|
13
13
|
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
14
14
|
import { useRouter } from 'next/navigation';
|
|
@@ -56,8 +56,12 @@ function NavBar(_ref) {
|
|
|
56
56
|
console.log(newValue);
|
|
57
57
|
setCurrentTab(newValue);
|
|
58
58
|
};
|
|
59
|
+
const theme = useTheme();
|
|
59
60
|
return /*#__PURE__*/React.createElement(AppBar, {
|
|
60
|
-
position: "sticky"
|
|
61
|
+
position: "sticky",
|
|
62
|
+
sx: {
|
|
63
|
+
backgroundColor: theme.palette.primary.main
|
|
64
|
+
}
|
|
61
65
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
62
66
|
maxWidth: maxWidth
|
|
63
67
|
}, /*#__PURE__*/React.createElement(Toolbar, {
|
package/package.json
CHANGED
package/src/components/NavBar.js
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
ListItemText,
|
|
19
19
|
Tabs,
|
|
20
20
|
Tab,
|
|
21
|
+
useTheme,
|
|
21
22
|
} from "@mui/material";
|
|
22
23
|
|
|
23
24
|
import CloseIcon from "@mui/icons-material/Close";
|
|
@@ -78,8 +79,13 @@ function NavBar({
|
|
|
78
79
|
setCurrentTab(newValue);
|
|
79
80
|
};
|
|
80
81
|
|
|
82
|
+
const theme = useTheme();
|
|
83
|
+
|
|
81
84
|
return (
|
|
82
|
-
<AppBar
|
|
85
|
+
<AppBar
|
|
86
|
+
position="sticky"
|
|
87
|
+
sx={{ backgroundColor: theme.palette.primary.main }}
|
|
88
|
+
>
|
|
83
89
|
<Container maxWidth={maxWidth}>
|
|
84
90
|
<Toolbar
|
|
85
91
|
disableGutters
|