From c521c4a1e101b64becb51b61edb1716cdaa46284 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Thu, 27 Nov 2025 02:29:18 +1000 Subject: [PATCH] fix: resolve ESLint errors and apply formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove onClick handler from Switch label (accessibility fix) - Fix React Hook conditional usage in useControlled - Remove unnecessary isControlled dependency from useCallback - Apply Biome formatting (template literals, className simplification) - Fix playground Checkbox/Switch onChange usage All CI checks should now pass: lint, type-check, format-check, build. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- apps/web/src/app/playground/page.tsx | 31 +++++++++++---------- packages/ui/src/Switch/Switch.tsx | 12 +-------- packages/ui/src/system/useControlled.ts | 36 +++++++++++-------------- 3 files changed, 32 insertions(+), 47 deletions(-) diff --git a/apps/web/src/app/playground/page.tsx b/apps/web/src/app/playground/page.tsx index 7a1988b..675424a 100644 --- a/apps/web/src/app/playground/page.tsx +++ b/apps/web/src/app/playground/page.tsx @@ -464,7 +464,9 @@ export default function Example() { {/* Forms Section */}
-

Form Components

+

+ Form Components +

{/* Textarea */}
@@ -479,12 +481,7 @@ export default function Example() { /> -