summaryrefslogtreecommitdiffhomepage
path: root/theme-test.tsx
diff options
context:
space:
mode:
authorGitHub Action <[email protected]>2025-11-08 01:59:02 +0000
committerGitHub Action <[email protected]>2025-11-08 01:59:02 +0000
commit34ff87d504836ff71b3bb2d466842c00ee3c5ec2 (patch)
treecc8ac777f2f082ff676b179017c7dc0f3270314b /theme-test.tsx
parent16357e804145b7f96a2a53badb7dcb6c5453dafe (diff)
downloadopencode-34ff87d504836ff71b3bb2d466842c00ee3c5ec2.tar.gz
opencode-34ff87d504836ff71b3bb2d466842c00ee3c5ec2.zip
chore: format code
Diffstat (limited to 'theme-test.tsx')
-rw-r--r--theme-test.tsx10
1 files changed, 2 insertions, 8 deletions
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 = <T extends (...args: any[]) => any>(
- func: T,
- wait: number,
-): ((...args: Parameters<T>) => void) => {
+const debounce = <T extends (...args: any[]) => any>(func: T, wait: number): ((...args: Parameters<T>) => void) => {
let timeout: NodeJS.Timeout
return (...args: Parameters<T>) => {
clearTimeout(timeout)
@@ -161,10 +158,7 @@ async function fetchUserData(userId: number): Promise<User> {
}
// 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>(theme)
const [status, setStatus] = useState<Status>("pending")