From b4aec167fdc1493148aab33778da9543d8970e43 Mon Sep 17 00:00:00 2001 From: Cohan Carpentier Date: Fri, 20 Sep 2024 16:10:40 -0400 Subject: [PATCH] fix: loading text typing --- README.md | 2 +- config/biome.base.jsonc | 2 +- loader.tsx | 4 +++- package.json | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 60c4845..b89552f 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,4 @@ https://www.npmjs.com/package/@risc0/ui | Statements | Branches | Functions | Lines | | --------------------------- | ----------------------- | ------------------------- | ----------------- | -| ![Statements](https://img.shields.io/badge/statements-38.61%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-74.68%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-61.9%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-38.61%25-red.svg?style=flat) | +| ![Statements](https://img.shields.io/badge/statements-38.65%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-74.68%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-61.9%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-38.65%25-red.svg?style=flat) | diff --git a/config/biome.base.jsonc b/config/biome.base.jsonc index 636bec9..f539189 100644 --- a/config/biome.base.jsonc +++ b/config/biome.base.jsonc @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json", + "$schema": "https://biomejs.dev/schemas/1.9.2/schema.json", "files": { "ignore": [".next", ".vercel", "build", "dist", "node_modules"], "ignoreUnknown": true diff --git a/loader.tsx b/loader.tsx index 68e3d36..1d11a08 100644 --- a/loader.tsx +++ b/loader.tsx @@ -1,7 +1,9 @@ +import type { ReactNode } from "react"; + export function Loader({ loadingSrc = "/loading.gif", loadingText = "Loading…", -}: { loadingText?: string; loadingSrc?: string }) { +}: { loadingText?: ReactNode; loadingSrc?: string }) { return (
Loading diff --git a/package.json b/package.json index a81600a..f6e1bea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@risc0/ui", - "version": "0.0.169", + "version": "0.0.170", "private": false, "sideEffects": false, "type": "module", @@ -50,7 +50,7 @@ "vaul": "0.9.4" }, "devDependencies": { - "@biomejs/biome": "1.9.1", + "@biomejs/biome": "1.9.2", "@ladle/react": "4.1.1", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1",