Skip to content

Commit 2cf2a55

Browse files
ci: apply automated fixes
1 parent 95ebe42 commit 2cf2a55

13 files changed

Lines changed: 394 additions & 365 deletions

File tree

‎examples/react/basic/src/index.tsx‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ function Posts({
5555
// ones that are cached
5656
queryClient.getQueryData(['post', post.id])
5757
? {
58-
fontWeight: 'bold',
59-
color: 'green',
60-
}
58+
fontWeight: 'bold',
59+
color: 'green',
60+
}
6161
: {}
6262
}
6363
>
@@ -134,7 +134,7 @@ function usePosts() {
134134
const Context = createContext<{
135135
count: number
136136
setCount: (count: number) => void
137-
}>({ count: 0, setCount: () => { } })
137+
}>({ count: 0, setCount: () => {} })
138138

139139
setTimeout(() => {
140140
queryPlugin.emit('test', {
@@ -197,7 +197,6 @@ function App() {
197197
)}
198198
<Devtools />
199199
</QueryClientProvider>
200-
201200
</Context.Provider>
202201
</div>
203202
)

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@
8484
"@tanstack/solid-devtools": "workspace:*",
8585
"@tanstack/devtools-vite": "workspace:*"
8686
}
87-
}
87+
}

‎packages/devtools-ui/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@
6464
"devDependencies": {
6565
"vite-plugin-solid": "^2.11.6"
6666
}
67-
}
67+
}
Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,44 @@
1-
import clsx from "clsx";
2-
import { useStyles } from "../styles/use-styles"
3-
import type { JSX } from "solid-js/jsx-runtime";
1+
import clsx from 'clsx'
2+
import { useStyles } from '../styles/use-styles'
3+
import type { JSX } from 'solid-js/jsx-runtime'
44

5-
export function Header({ children, class: className, ...rest }: JSX.IntrinsicElements["header"]) {
6-
const styles = useStyles();
7-
return <header class={clsx(styles().header.row, 'tsqd-header', className)} {...rest}>
8-
{children}
9-
</header>
5+
export function Header({
6+
children,
7+
class: className,
8+
...rest
9+
}: JSX.IntrinsicElements['header']) {
10+
const styles = useStyles()
11+
return (
12+
<header
13+
class={clsx(styles().header.row, 'tsqd-header', className)}
14+
{...rest}
15+
>
16+
{children}
17+
</header>
18+
)
1019
}
1120

1221
export function HeaderLogo({
1322
children,
14-
flavor
23+
flavor,
1524
}: {
16-
children: JSX.Element,
25+
children: JSX.Element
1726
flavor: {
18-
light: string,
27+
light: string
1928
dark: string
2029
}
2130
}) {
22-
const styles = useStyles();
31+
const styles = useStyles()
2332
return (
2433
<div class={styles().header.logoAndToggleContainer}>
25-
<button
26-
class={clsx(styles().header.logo,)}
27-
>
34+
<button class={clsx(styles().header.logo)}>
35+
<span class={clsx(styles().header.tanstackLogo)}>TANSTACK</span>
2836
<span
29-
class={clsx(styles().header.tanstackLogo)}
30-
>
31-
TANSTACK
32-
</span>
33-
<span
34-
class={clsx(
35-
styles().header.flavorLogo(flavor.light, flavor.dark),
36-
)}
37+
class={clsx(styles().header.flavorLogo(flavor.light, flavor.dark))}
3738
>
3839
{children}
3940
</span>
4041
</button>
41-
</div>)
42-
43-
}
42+
</div>
43+
)
44+
}

0 commit comments

Comments
 (0)