@hanzo/ui 1.0.8 → 1.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -12,7 +12,7 @@
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "git+https://github.com/hanzoai/react-sdk.git",
15
- "directory": "pkgs/hanzo-ui"
15
+ "directory": "packages/ui"
16
16
  },
17
17
  "files": [
18
18
  "assets",
@@ -50,11 +50,11 @@ const LinkElement: React.FC<PropsWithChildren & {
50
50
  // As per LinkDef docs
51
51
  if (href.startsWith('http') || href.startsWith('mailto')) {
52
52
  linkProps.rel = 'noreferrer noopener'
53
- if (newTab !== undefined || newTab === true) {
53
+ if (newTab ?? true) {
54
54
  linkProps.target = '_blank'
55
55
  }
56
56
  }
57
- else if (newTab !== undefined && newTab === true) {
57
+ else if (newTab) {
58
58
  linkProps.target = '_blank'
59
59
  }
60
60
 
@@ -30,4 +30,8 @@ export default [
30
30
  title: 'Open Source',
31
31
  href: 'https://github.com/luxdefi',
32
32
  },
33
+ {
34
+ title: 'Launch Subnet',
35
+ href: 'https://docs.lux.network/build/subnet/hello-subnet',
36
+ },
33
37
  ] satisfies LinkDef[]