From 34ff87d504836ff71b3bb2d466842c00ee3c5ec2 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 8 Nov 2025 01:59:02 +0000 Subject: chore: format code --- theme-test.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'theme-test.tsx') diff --git a/theme-test.tsx b/theme-test.tsx index 61837473e..810ff4fc1 100644 --- a/theme-test.tsx +++ b/theme-test.tsx @@ -135,10 +135,7 @@ const htmlTemplate = ` ` // Arrow functions -const debounce = any>( - func: T, - wait: number, -): ((...args: Parameters) => void) => { +const debounce = any>(func: T, wait: number): ((...args: Parameters) => void) => { let timeout: NodeJS.Timeout return (...args: Parameters) => { clearTimeout(timeout) @@ -161,10 +158,7 @@ async function fetchUserData(userId: number): Promise { } // React component with various patterns -const ThemeProvider: FC<{ children: ReactNode; theme?: Theme }> = ({ - children, - theme = "auto", -}) => { +const ThemeProvider: FC<{ children: ReactNode; theme?: Theme }> = ({ children, theme = "auto" }) => { const [currentTheme, setCurrentTheme] = useState(theme) const [status, setStatus] = useState("pending") -- cgit v1.2.3