From 26cf5e003ebd402b3343504dd6726a4c8cc9ffe3 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Fri, 19 Dec 2025 15:11:42 -0600 Subject: fix(desktop): perf stuff --- packages/ui/src/components/switch.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'packages/ui/src/components/switch.tsx') diff --git a/packages/ui/src/components/switch.tsx b/packages/ui/src/components/switch.tsx index af70dfb5c..a8600aef4 100644 --- a/packages/ui/src/components/switch.tsx +++ b/packages/ui/src/components/switch.tsx @@ -1,5 +1,5 @@ import { Switch as Kobalte } from "@kobalte/core/switch" -import { children, Show, splitProps } from "solid-js" +import { Show, splitProps } from "solid-js" import type { ComponentProps, ParentProps } from "solid-js" export interface SwitchProps extends ParentProps> { @@ -9,13 +9,12 @@ export interface SwitchProps extends ParentProps> export function Switch(props: SwitchProps) { const [local, others] = splitProps(props, ["children", "class", "hideLabel", "description"]) - const resolved = children(() => local.children) return ( - + - {resolved()} + {local.children} -- cgit v1.2.3