From 8b58dcf02e19139a249f69a9ea8b74adca4b1c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Wed, 27 May 2026 13:53:11 +0800 Subject: [PATCH] fix(SwitchButtonGroup): remove redundant containerPadding conditional Both branches of the ternary returned 'p-1'. Inline the constant directly into the className string. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- components/SwitchButtonGroup.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/SwitchButtonGroup.tsx b/components/SwitchButtonGroup.tsx index cf4c8ee..831ad7a 100644 --- a/components/SwitchButtonGroup.tsx +++ b/components/SwitchButtonGroup.tsx @@ -34,14 +34,10 @@ export default function SwitchButtonGroup({ large: 'text-base h-11 px-4 py-2 rounded-lg', }; - const containerPadding = size === 'large' ? 'p-1' : 'p-1'; - return (