Skip to content

Commit ef5bfbb

Browse files
ci: apply automated fixes
1 parent 670e205 commit ef5bfbb

28 files changed

+191
-161
lines changed

src/components/CodeExplorerTopBar.tsx

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import React from 'react'
2-
import { ArrowLeftFromLine, ArrowRightFromLine, Maximize, Minimize, TextAlignStart } from 'lucide-react'
2+
import {
3+
ArrowLeftFromLine,
4+
ArrowRightFromLine,
5+
Maximize,
6+
Minimize,
7+
TextAlignStart,
8+
} from 'lucide-react'
39

410
interface CodeExplorerTopBarProps {
511
activeTab: 'code' | 'sandbox'
@@ -22,24 +28,23 @@ export function CodeExplorerTopBar({
2228
<div className="flex items-center justify-between gap-2 border-b border-gray-200 dark:border-gray-700">
2329
<div className="flex items-center gap-2 px-1">
2430
{activeTab === 'code' ? (
25-
isSidebarOpen ?
26-
<button
27-
onClick={() => setIsSidebarOpen(!isSidebarOpen)}
28-
className="p-2 text-sm rounded transition-colors hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"
29-
title={'Hide sidebar'}
30-
>
31-
<ArrowLeftFromLine className="w-4 h-4" />
32-
</button>
33-
:
34-
(
35-
<button
36-
onClick={() => setIsSidebarOpen(!isSidebarOpen)}
37-
className="p-2 text-sm rounded transition-colors hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"
38-
title={'Show sidebar'}
39-
>
40-
<ArrowRightFromLine className="w-4 h-4" />
41-
</button>
42-
)
31+
isSidebarOpen ? (
32+
<button
33+
onClick={() => setIsSidebarOpen(!isSidebarOpen)}
34+
className="p-2 text-sm rounded transition-colors hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"
35+
title={'Hide sidebar'}
36+
>
37+
<ArrowLeftFromLine className="w-4 h-4" />
38+
</button>
39+
) : (
40+
<button
41+
onClick={() => setIsSidebarOpen(!isSidebarOpen)}
42+
className="p-2 text-sm rounded transition-colors hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"
43+
title={'Show sidebar'}
44+
>
45+
<ArrowRightFromLine className="w-4 h-4" />
46+
</button>
47+
)
4348
) : (
4449
<div className="p-2 text-sm rounded" aria-hidden>
4550
<TextAlignStart className="w-4 h-4 text-transparent" aria-hidden />

src/components/Doc.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ function DocContent({
144144
{isFullWidth ? (
145145
<FoldHorizontal className="w-4 h-4" />
146146
) : (
147-
<UnfoldHorizontal
148-
className="w-4 h-4"
149-
/>
147+
<UnfoldHorizontal className="w-4 h-4" />
150148
)}
151149
</button>
152150
)}

src/components/FrameworkCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Library } from '~/libraries'
44
import { getFrameworkOptions } from '~/libraries/frameworks'
55
import { useCopyButton } from '~/components/CopyMarkdownButton'
66
import { useToast } from '~/components/ToastProvider'
7-
import { Check, Copy } from "lucide-react"
7+
import { Check, Copy } from 'lucide-react'
88

99
export function FrameworkCard({
1010
framework,

src/components/MaintainerCard.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@ export function MaintainerRowCard({
344344
)}
345345
</div>
346346
)}
347-
348347
</div>
349348
</div>
350349
</div>

src/components/Markdown.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,11 @@ export function CodeBlock({
256256
}}
257257
aria-label="Copy code to clipboard"
258258
>
259-
{copied ? <span className="text-xs">Copied!</span> : <Copy size={14} />}
259+
{copied ? (
260+
<span className="text-xs">Copied!</span>
261+
) : (
262+
<Copy size={14} />
263+
)}
260264
</button>
261265
</div>
262266
) : null}

src/components/PartnershipCallout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export function PartnershipCallout({ libraryId }: PartnershipCalloutProps) {
1616
dark:bg-black/40 dark:shadow-none w-[500px] max-w-full mx-auto"
1717
>
1818
<span className="flex items-center gap-2 p-8 text-3xl text-rose-500 font-black uppercase">
19-
{library.name.replace('TanStack ', '')} <HeartHandshake size={28} /> You?
19+
{library.name.replace('TanStack ', '')} <HeartHandshake size={28} />{' '}
20+
You?
2021
</span>
2122
<div className="flex flex-col p-4 gap-3 text-sm">
2223
<div>

src/components/TocMobile.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export function TocMobile({ headings }: TocMobileProps) {
2626
rounded-b-xl"
2727
aria-expanded={isOpen}
2828
>
29-
<span>{isOpen ? <ChevronDown size={16} /> : <ChevronRight size={16} />}</span>
29+
<span>
30+
{isOpen ? <ChevronDown size={16} /> : <ChevronRight size={16} />}
31+
</span>
3032
<span>On this page</span>
3133
</summary>
3234
<div className="px-2 py-2">

src/components/admin/FeedEntryEditor.tsx

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ export function FeedEntryEditor({
182182
<div className="space-y-4">
183183
{/* Title */}
184184
<div>
185-
<label
186-
htmlFor="title"
187-
className="block text-sm font-medium mb-2"
188-
>
185+
<label htmlFor="title" className="block text-sm font-medium mb-2">
189186
Title *
190187
</label>
191188
<input
@@ -199,9 +196,7 @@ export function FeedEntryEditor({
199196

200197
{/* Content */}
201198
<div>
202-
<label
203-
htmlFor="content"
204-
className="block text-sm font-medium mb-2">
199+
<label htmlFor="content" className="block text-sm font-medium mb-2">
205200
Content *
206201
</label>
207202
<textarea
@@ -215,10 +210,7 @@ export function FeedEntryEditor({
215210

216211
{/* Excerpt */}
217212
<div>
218-
<label
219-
htmlFor="excerpt"
220-
className="block text-sm font-medium mb-2"
221-
>
213+
<label htmlFor="excerpt" className="block text-sm font-medium mb-2">
222214
Excerpt (optional)
223215
</label>
224216
<textarea
@@ -250,7 +242,8 @@ export function FeedEntryEditor({
250242
<div>
251243
<label
252244
htmlFor="category"
253-
className="block text-sm font-medium mb-2">
245+
className="block text-sm font-medium mb-2"
246+
>
254247
Category *
255248
</label>
256249
<select
@@ -332,10 +325,7 @@ export function FeedEntryEditor({
332325

333326
{/* Tags */}
334327
<div>
335-
<label
336-
htmlFor="tags"
337-
className="block text-sm font-medium mb-2"
338-
>
328+
<label htmlFor="tags" className="block text-sm font-medium mb-2">
339329
Tags (comma-separated)
340330
</label>
341331
<input

src/components/icons/BSkyIcon.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import * as React from 'react'
22

33
export function BSkyIcon({
4-
className,
5-
width = '1em',
6-
height = '1em',
7-
...props
8-
}: React.SVGProps<SVGSVGElement>) {
4+
className,
5+
width = '1em',
6+
height = '1em',
7+
...props
8+
}: React.SVGProps<SVGSVGElement>) {
99
return (
1010
<svg
1111
viewBox="0 0 24 24"
@@ -24,4 +24,4 @@ export function BSkyIcon({
2424
<path d="M6.335 5.144c-1.654 -1.199 -4.335 -2.127 -4.335 .826c0 .59 .35 4.953 .556 5.661c.713 2.463 3.13 2.75 5.444 2.369c-4.045 .665 -4.889 3.208 -2.667 5.41c1.03 1.018 1.913 1.59 2.667 1.59c2 0 3.134 -2.769 3.5 -3.5c.333 -.667 .5 -1.167 .5 -1.5c0 .333 .167 .833 .5 1.5c.366 .731 1.5 3.5 3.5 3.5c.754 0 1.637 -.571 2.667 -1.59c2.222 -2.203 1.378 -4.746 -2.667 -5.41c2.314 .38 4.73 .094 5.444 -2.369c.206 -.708 .556 -5.072 .556 -5.661c0 -2.953 -2.68 -2.025 -4.335 -.826c-2.293 1.662 -4.76 5.048 -5.665 6.856c-.905 -1.808 -3.372 -5.194 -5.665 -6.856z"></path>
2525
</svg>
2626
)
27-
}
27+
}

src/components/icons/BaseballCapIcon.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import * as React from 'react'
22

33
export function BaseballCapIcon({
4-
className,
5-
width = '1em',
6-
height = '1em',
7-
...props
8-
}: React.SVGProps<SVGSVGElement>) {
4+
className,
5+
width = '1em',
6+
height = '1em',
7+
...props
8+
}: React.SVGProps<SVGSVGElement>) {
99
return (
1010
<svg
1111
viewBox="0 0 256 256"
@@ -22,4 +22,4 @@ export function BaseballCapIcon({
2222
<path d="M128,20A108.12,108.12,0,0,0,20,128v56a27.86,27.86,0,0,0,15.26,24.93,28,28,0,0,0,29.28-2.34C76.2,198.11,96.68,188,128,188s51.8,10.1,63.46,18.58A28,28,0,0,0,236,184V128A108.12,108.12,0,0,0,128,20Zm84,108v1.87a170,170,0,0,0-33.29-14.3,170.81,170.81,0,0,0-23.45-67A84.14,84.14,0,0,1,212,128Zm-58.46-18.12a174.42,174.42,0,0,0-51.08,0A150,150,0,0,1,128,50.94,150.07,150.07,0,0,1,153.54,109.88Zm-52.8-61.31a170.81,170.81,0,0,0-23.45,67A170,170,0,0,0,44,129.87V128A84.14,84.14,0,0,1,100.74,48.57Zm109.11,139a4,4,0,0,1-4.28-.36C191,176.61,165.77,164,128,164s-63,12.61-77.57,23.18a4,4,0,0,1-4.28.36A3.76,3.76,0,0,1,44,184V158.14a148,148,0,0,1,168,0V184A3.76,3.76,0,0,1,209.85,187.54Z"></path>
2323
</svg>
2424
)
25-
}
25+
}

0 commit comments

Comments
 (0)