From 015524cd6388543ba571c2efbcc4932e1e50ba63 Mon Sep 17 00:00:00 2001 From: kenneth Date: Sat, 8 Nov 2025 18:03:26 +0000 Subject: [PATCH] style: apply biome formatting to UI components - Convert spaces to tabs for consistency - Add 'type' modifier to React imports - Format component code Co-authored-by: Ona --- apps/drive-web/src/APITester.tsx | 75 ++-- apps/drive-web/src/components/ui/card.tsx | 132 +++--- apps/drive-web/src/components/ui/field.tsx | 381 +++++++++--------- apps/drive-web/src/components/ui/label.tsx | 26 +- apps/drive-web/src/components/ui/progress.tsx | 40 +- .../drive-web/src/components/ui/separator.tsx | 34 +- 6 files changed, 349 insertions(+), 339 deletions(-) diff --git a/apps/drive-web/src/APITester.tsx b/apps/drive-web/src/APITester.tsx index fd2af48..07854da 100644 --- a/apps/drive-web/src/APITester.tsx +++ b/apps/drive-web/src/APITester.tsx @@ -1,39 +1,50 @@ -import { useRef, type FormEvent } from "react"; +import { type FormEvent, useRef } from "react" export function APITester() { - const responseInputRef = useRef(null); + const responseInputRef = useRef(null) - const testEndpoint = async (e: FormEvent) => { - e.preventDefault(); + const testEndpoint = async (e: FormEvent) => { + e.preventDefault() - try { - const form = e.currentTarget; - const formData = new FormData(form); - const endpoint = formData.get("endpoint") as string; - const url = new URL(endpoint, location.href); - const method = formData.get("method") as string; - const res = await fetch(url, { method }); + try { + const form = e.currentTarget + const formData = new FormData(form) + const endpoint = formData.get("endpoint") as string + const url = new URL(endpoint, location.href) + const method = formData.get("method") as string + const res = await fetch(url, { method }) - const data = await res.json(); - responseInputRef.current!.value = JSON.stringify(data, null, 2); - } catch (error) { - responseInputRef.current!.value = String(error); - } - }; + const data = await res.json() + responseInputRef.current!.value = JSON.stringify(data, null, 2) + } catch (error) { + responseInputRef.current!.value = String(error) + } + } - return ( -
-
- - - -
-