umwd-components 0.1.231 → 0.1.232
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.
|
@@ -29,7 +29,8 @@ function ScrollNavbar(_ref) {
|
|
|
29
29
|
tabs,
|
|
30
30
|
maxWidth,
|
|
31
31
|
minHeight,
|
|
32
|
-
sx = {}
|
|
32
|
+
sx = {},
|
|
33
|
+
home_url = "/#home"
|
|
33
34
|
} = data;
|
|
34
35
|
const [mobileNavOpen, setMobileNavOpen] = React.useState(false);
|
|
35
36
|
const [currentTab, setCurrentTab] = React.useState(0);
|
|
@@ -70,7 +71,7 @@ function ScrollNavbar(_ref) {
|
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
73
|
-
href: "
|
|
74
|
+
href: "/#home",
|
|
74
75
|
style: {
|
|
75
76
|
color: theme.palette.primary.contrastText,
|
|
76
77
|
textDecoration: "none",
|
|
@@ -25,7 +25,8 @@ function ScrollNavbar(_ref) {
|
|
|
25
25
|
tabs,
|
|
26
26
|
maxWidth,
|
|
27
27
|
minHeight,
|
|
28
|
-
sx = {}
|
|
28
|
+
sx = {},
|
|
29
|
+
home_url = "/#home"
|
|
29
30
|
} = data;
|
|
30
31
|
const [mobileNavOpen, setMobileNavOpen] = useState(false);
|
|
31
32
|
const [currentTab, setCurrentTab] = useState(0);
|
|
@@ -66,7 +67,7 @@ function ScrollNavbar(_ref) {
|
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
}, /*#__PURE__*/React__default.createElement(Link, {
|
|
69
|
-
href: "
|
|
70
|
+
href: "/#home",
|
|
70
71
|
style: {
|
|
71
72
|
color: theme.palette.primary.contrastText,
|
|
72
73
|
textDecoration: "none",
|
package/package.json
CHANGED
|
@@ -56,10 +56,20 @@ interface NavbarProps {
|
|
|
56
56
|
maxWidth: MaxWidth;
|
|
57
57
|
minHeight: string;
|
|
58
58
|
sx?: SxProps<Theme>;
|
|
59
|
+
home_url?: string;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
|
|
62
|
-
const {
|
|
63
|
+
const {
|
|
64
|
+
site_title,
|
|
65
|
+
logo,
|
|
66
|
+
pages,
|
|
67
|
+
tabs,
|
|
68
|
+
maxWidth,
|
|
69
|
+
minHeight,
|
|
70
|
+
sx = {},
|
|
71
|
+
home_url = "/#home",
|
|
72
|
+
} = data;
|
|
63
73
|
|
|
64
74
|
const [mobileNavOpen, setMobileNavOpen] = useState(false);
|
|
65
75
|
const [currentTab, setCurrentTab] = useState(0);
|
|
@@ -110,7 +120,7 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
|
|
|
110
120
|
>
|
|
111
121
|
{/* logo and site title for big screens */}
|
|
112
122
|
<Link
|
|
113
|
-
href={
|
|
123
|
+
href={`/#home`}
|
|
114
124
|
style={{
|
|
115
125
|
color: theme.palette.primary.contrastText,
|
|
116
126
|
textDecoration: "none",
|