umwd-components 0.1.186 → 0.1.188
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/cjs/components/IconSection.js +1 -1
- package/dist/cjs/components/ScrollNavbar.js +2 -4
- package/dist/esm/components/IconSection.js +1 -1
- package/dist/esm/components/ScrollNavbar.js +2 -4
- package/package.json +1 -1
- package/src/components/IconSection.tsx +1 -1
- package/src/components/ScrollNavbar.tsx +16 -17
|
@@ -149,10 +149,8 @@ function ScrollNavbar(_ref) {
|
|
|
149
149
|
indicatorColor: "secondary",
|
|
150
150
|
role: "navigation"
|
|
151
151
|
}, tabs.length > 0 && tabs.map((tab, index) => {
|
|
152
|
-
return /*#__PURE__*/React.createElement(
|
|
152
|
+
return /*#__PURE__*/React.createElement(Link, {
|
|
153
153
|
key: tab.name,
|
|
154
|
-
onClick: e => setCurrentTab(index)
|
|
155
|
-
}, /*#__PURE__*/React.createElement(Link, {
|
|
156
154
|
href: "/#".concat(tab.slug),
|
|
157
155
|
style: {
|
|
158
156
|
color: theme.palette.primary.contrastText,
|
|
@@ -166,7 +164,7 @@ function ScrollNavbar(_ref) {
|
|
|
166
164
|
color: theme.palette.primary.contrastText,
|
|
167
165
|
opacity: 0.9
|
|
168
166
|
}
|
|
169
|
-
}))
|
|
167
|
+
}));
|
|
170
168
|
}))), /*#__PURE__*/React.createElement(Link, {
|
|
171
169
|
href: "/",
|
|
172
170
|
style: {
|
|
@@ -145,10 +145,8 @@ function ScrollNavbar(_ref) {
|
|
|
145
145
|
indicatorColor: "secondary",
|
|
146
146
|
role: "navigation"
|
|
147
147
|
}, tabs.length > 0 && tabs.map((tab, index) => {
|
|
148
|
-
return /*#__PURE__*/React__default.createElement(
|
|
148
|
+
return /*#__PURE__*/React__default.createElement(Link, {
|
|
149
149
|
key: tab.name,
|
|
150
|
-
onClick: e => setCurrentTab(index)
|
|
151
|
-
}, /*#__PURE__*/React__default.createElement(Link, {
|
|
152
150
|
href: "/#".concat(tab.slug),
|
|
153
151
|
style: {
|
|
154
152
|
color: theme.palette.primary.contrastText,
|
|
@@ -162,7 +160,7 @@ function ScrollNavbar(_ref) {
|
|
|
162
160
|
color: theme.palette.primary.contrastText,
|
|
163
161
|
opacity: 0.9
|
|
164
162
|
}
|
|
165
|
-
}))
|
|
163
|
+
}));
|
|
166
164
|
}))), /*#__PURE__*/React__default.createElement(Link, {
|
|
167
165
|
href: "/",
|
|
168
166
|
style: {
|
package/package.json
CHANGED
|
@@ -210,25 +210,24 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
|
|
|
210
210
|
{tabs.length > 0 &&
|
|
211
211
|
tabs.map((tab: TabInfo, index: number) => {
|
|
212
212
|
return (
|
|
213
|
-
<
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
213
|
+
<Link
|
|
214
|
+
key={tab.name}
|
|
215
|
+
href={`/#${tab.slug}`}
|
|
216
|
+
style={{
|
|
217
|
+
color: theme.palette.primary.contrastText,
|
|
218
|
+
textDecoration: "none",
|
|
219
|
+
cursor: "pointer",
|
|
220
|
+
}}
|
|
221
|
+
>
|
|
222
|
+
<Tab
|
|
223
|
+
value={index}
|
|
224
|
+
label={tab.name}
|
|
225
|
+
sx={{
|
|
217
226
|
color: theme.palette.primary.contrastText,
|
|
218
|
-
|
|
219
|
-
cursor: "pointer",
|
|
227
|
+
opacity: 0.9,
|
|
220
228
|
}}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
value={index}
|
|
224
|
-
label={tab.name}
|
|
225
|
-
sx={{
|
|
226
|
-
color: theme.palette.primary.contrastText,
|
|
227
|
-
opacity: 0.9,
|
|
228
|
-
}}
|
|
229
|
-
/>
|
|
230
|
-
</Link>
|
|
231
|
-
</Box>
|
|
229
|
+
/>
|
|
230
|
+
</Link>
|
|
232
231
|
);
|
|
233
232
|
})}
|
|
234
233
|
</Tabs>
|