Skip to content

Commit 6606108

Browse files
committed
chore: remove clsx
1 parent 05a99f0 commit 6606108

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

packages/devtools-ui/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"build": "vite build"
5454
},
5555
"dependencies": {
56-
"clsx": "^2.1.1",
5756
"goober": "^2.1.16",
5857
"solid-js": "^1.9.7"
5958
},
@@ -63,4 +62,4 @@
6362
"devDependencies": {
6463
"vite-plugin-solid": "^2.11.6"
6564
}
66-
}
65+
}

packages/devtools-ui/src/components/button.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { splitProps } from 'solid-js'
2-
import clsx from 'clsx'
32
import { useStyles } from '../styles/use-styles'
43
import type { JSX } from 'solid-js'
54

@@ -28,11 +27,11 @@ export function Button(props: ButtonProps) {
2827
'className',
2928
])
3029
const variant = local.variant || 'primary'
31-
const classes = clsx(
30+
const classes = [
3231
styles().button.base,
3332
styles().button.variant(variant, local.outline, local.ghost),
3433
local.className,
35-
)
34+
].filter(Boolean).join(' ')
3635

3736
return (
3837
<button {...rest} class={classes}>

packages/devtools-ui/src/components/tree.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { For, Show, createSignal } from 'solid-js'
2-
import clsx from 'clsx'
32
import { useStyles } from '../styles/use-styles'
43

4+
const clsx = (...args: any) => [...args].filter(Boolean).join(' ')
5+
56
export function JsonTree(props: { value: any }) {
67
return <JsonValue isRoot value={props.value} />
78
}

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)