summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/tabs.tsx
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-04-15 20:45:19 -0400
committerGitHub <[email protected]>2026-04-15 20:45:19 -0400
commit3d6f90cb536ec30ff5091e1cbe3b1e619a93e1b0 (patch)
treeecdd8fa222dd57683298409ef0b84cfd1d1ebc24 /packages/ui/src/components/tabs.tsx
parenta554fad2327c68b2dc562a19e62a96415028b6d8 (diff)
downloadopencode-3d6f90cb536ec30ff5091e1cbe3b1e619a93e1b0.tar.gz
opencode-3d6f90cb536ec30ff5091e1cbe3b1e619a93e1b0.zip
feat: add oxlint with correctness defaults (#22682)
Diffstat (limited to 'packages/ui/src/components/tabs.tsx')
-rw-r--r--packages/ui/src/components/tabs.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/ui/src/components/tabs.tsx b/packages/ui/src/components/tabs.tsx
index 396504dd7..f46e9bfb3 100644
--- a/packages/ui/src/components/tabs.tsx
+++ b/packages/ui/src/components/tabs.tsx
@@ -27,7 +27,7 @@ function TabsRoot(props: TabsProps) {
data-variant={split.variant || "normal"}
data-orientation={split.orientation || "horizontal"}
classList={{
- ...(split.classList ?? {}),
+ ...split.classList,
[split.class ?? ""]: !!split.class,
}}
/>
@@ -41,7 +41,7 @@ function TabsList(props: TabsListProps) {
{...rest}
data-slot="tabs-list"
classList={{
- ...(split.classList ?? {}),
+ ...split.classList,
[split.class ?? ""]: !!split.class,
}}
/>
@@ -63,7 +63,7 @@ function TabsTrigger(props: ParentProps<TabsTriggerProps>) {
data-slot="tabs-trigger-wrapper"
data-value={props.value}
classList={{
- ...(split.classList ?? {}),
+ ...split.classList,
[split.class ?? ""]: !!split.class,
}}
onMouseDown={(e) => {
@@ -104,7 +104,7 @@ function TabsContent(props: ParentProps<TabsContentProps>) {
{...rest}
data-slot="tabs-content"
classList={{
- ...(split.classList ?? {}),
+ ...split.classList,
[split.class ?? ""]: !!split.class,
}}
>