Skip to content

Commit

Permalink
fix: loading text typing
Browse files Browse the repository at this point in the history
  • Loading branch information
nahoc committed Sep 20, 2024
1 parent 1ed53ed commit b4aec16
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
2 changes: 1 addition & 1 deletion config/biome.base.jsonc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion loader.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div className="mx-auto flex animate-fade-in-up flex-col items-center justify-center gap-3">
<img height={120} width={128} src={loadingSrc} alt="Loading" />
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@risc0/ui",
"version": "0.0.169",
"version": "0.0.170",
"private": false,
"sideEffects": false,
"type": "module",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit b4aec16

Please sign in to comment.