umwd-components 0.1.145 → 0.1.146

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.
@@ -136,12 +136,13 @@ function ScrollNavbar(_ref) {
136
136
  return /*#__PURE__*/React.createElement(material.Box, {
137
137
  key: tab.name,
138
138
  onClick: e => setCurrentTab(index)
139
- }, /*#__PURE__*/React.createElement(ScrollLink.default, {
140
- key: tab.name,
139
+ }, /*#__PURE__*/React.createElement(Link
140
+ /* {...props} */, {
141
141
  href: "/#".concat(tab.slug),
142
142
  style: {
143
- display: "block",
144
- height: "100%"
143
+ color: theme.palette.primary.contrastText,
144
+ textDecoration: "none",
145
+ cursor: "pointer"
145
146
  }
146
147
  }, /*#__PURE__*/React.createElement(material.Tab, {
147
148
  value: index,
@@ -132,12 +132,13 @@ function ScrollNavbar(_ref) {
132
132
  return /*#__PURE__*/React__default.createElement(Box, {
133
133
  key: tab.name,
134
134
  onClick: e => setCurrentTab(index)
135
- }, /*#__PURE__*/React__default.createElement(ScrollLink, {
136
- key: tab.name,
135
+ }, /*#__PURE__*/React__default.createElement(Link
136
+ /* {...props} */, {
137
137
  href: "/#".concat(tab.slug),
138
138
  style: {
139
- display: "block",
140
- height: "100%"
139
+ color: theme.palette.primary.contrastText,
140
+ textDecoration: "none",
141
+ cursor: "pointer"
141
142
  }
142
143
  }, /*#__PURE__*/React__default.createElement(Tab, {
143
144
  value: index,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.145",
3
+ "version": "0.1.146",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -187,26 +187,24 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
187
187
  tabs.map((tab: TabInfo, index: number) => {
188
188
  return (
189
189
  <Box key={tab.name} onClick={(e) => setCurrentTab(index)}>
190
- {/* <Link
191
-
192
- href={`#${tab.slug}`}
190
+ <Link
191
+ /* {...props} */
192
+ href={`/#${tab.slug}`}
193
193
  style={{
194
194
  color: theme.palette.primary.contrastText,
195
195
  textDecoration: "none",
196
196
  cursor: "pointer",
197
197
  }}
198
- scroll={false}
199
198
  >
200
- {tab.name}
201
199
  <Tab value={index} label={tab.name} />
202
- </Link> */}
203
- <ScrollLink
200
+ </Link>
201
+ {/* <ScrollLink
204
202
  key={tab.name}
205
- href={`/#${tab.slug}`}
203
+ href={`#${tab.slug}`}
206
204
  style={{ display: "block", height: "100%" }}
207
205
  >
208
206
  <Tab value={index} label={tab.name} />
209
- </ScrollLink>
207
+ </ScrollLink> */}
210
208
  </Box>
211
209
  );
212
210
  })}