From e37bd38f346f9af148eb39867a0390f9e9c9fd5a Mon Sep 17 00:00:00 2001 From: ajnart <49837342+ajnart@users.noreply.github.com> Date: Wed, 24 Jun 2026 13:51:55 +0000 Subject: [PATCH] style: auto-fix lint and format --- apps/docs/src/components/store/DetailPage.tsx | 33 ++++-- apps/docs/src/components/store/StoreApp.tsx | 15 ++- apps/docs/src/components/store/useStore.ts | 4 +- apps/docs/src/components/ui/badge.tsx | 27 ++--- apps/docs/src/components/ui/button.tsx | 26 ++--- apps/docs/src/components/ui/dialog.tsx | 84 +++++--------- apps/docs/src/components/ui/input.tsx | 12 +- apps/docs/src/components/ui/label.tsx | 10 +- apps/docs/src/components/ui/select.tsx | 106 ++++++------------ apps/docs/src/components/ui/separator.tsx | 16 +-- apps/docs/src/components/ui/textarea.tsx | 10 +- .../custom-widgets/_custom-widget-form.tsx | 83 ++++++++++++-- .../custom-widgets/_custom-widget-list.tsx | 14 ++- 13 files changed, 224 insertions(+), 216 deletions(-) diff --git a/apps/docs/src/components/store/DetailPage.tsx b/apps/docs/src/components/store/DetailPage.tsx index 018c4b047..6d95aea8f 100644 --- a/apps/docs/src/components/store/DetailPage.tsx +++ b/apps/docs/src/components/store/DetailPage.tsx @@ -227,7 +227,9 @@ const CommentsSection = ({ const trimmed = editContent.trim(); if (!trimmed) return; try { - const updated = await pb.collection("comments").update(id, { content: trimmed }, { expand: "author" }); + const updated = await pb + .collection("comments") + .update(id, { content: trimmed }, { expand: "author" }); setRows((prev) => prev.map((c) => (c.id === id ? updated : c))); setEditingId(null); } catch (caught) { @@ -329,7 +331,12 @@ const DeleteConfirmButton = ({ onConfirm }: { onConfirm: () => void }) => { const [pending, setPending] = useState(false); const timer = useRef>(null); - useEffect(() => () => { if (timer.current) clearTimeout(timer.current); }, []); + useEffect( + () => () => { + if (timer.current) clearTimeout(timer.current); + }, + [], + ); const handleClick = () => { if (!pending) { @@ -345,7 +352,9 @@ const DeleteConfirmButton = ({ onConfirm }: { onConfirm: () => void }) => { - + {score} )} - {user?.id === submission.author && ( - - )} + {user?.id === submission.author && }
@@ -643,9 +656,7 @@ export default function MarketplaceDetailPage() { return (
- }> - {() => } - + }>{() => }
); diff --git a/apps/docs/src/components/store/StoreApp.tsx b/apps/docs/src/components/store/StoreApp.tsx index fe119d4b8..24905de21 100644 --- a/apps/docs/src/components/store/StoreApp.tsx +++ b/apps/docs/src/components/store/StoreApp.tsx @@ -42,7 +42,10 @@ import { useStore } from "./useStore"; const typeDotColors: Record = { css: "bg-blue-500", widget: "bg-yellow-500" }; const typeLabels: Record = { css: "CSS", widget: "Widget" }; -const typeIcons: Record> = { css: IconBrandCss3, widget: IconPuzzle }; +const typeIcons: Record> = { + css: IconBrandCss3, + widget: IconPuzzle, +}; const typeBgColors: Record = { css: "bg-blue-500/5", widget: "bg-yellow-500/5" }; const filterActiveClass = "bg-background text-foreground shadow-sm"; const filterInactiveClass = "text-muted-foreground hover:text-foreground"; @@ -66,7 +69,6 @@ const sortOptions: { value: SortKey; label: string }[] = [ { value: "new", label: "Newest" }, ]; - const relativeTime = (date: string) => { const minutes = Math.floor((Date.now() - new Date(date).getTime()) / 60000); if (minutes < 1) return "just now"; @@ -191,7 +193,9 @@ export const StoreApp = ({ storeUrl }: { storeUrl: string }) => { {store.loading && (
- {Array.from({ length: 6 }, (_, i) => )} + {Array.from({ length: 6 }, (_, i) => ( + + ))}
)} @@ -422,7 +426,9 @@ const SubmissionCard = ({