From de55863a5d28a70ef290fefafe1de6b495fc9658 Mon Sep 17 00:00:00 2001 From: Cohan Carpentier Date: Thu, 25 Apr 2024 14:03:57 -0400 Subject: [PATCH] feat: custom loading text for loader component --- loader.tsx | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/loader.tsx b/loader.tsx index 827f764..58e689c 100644 --- a/loader.tsx +++ b/loader.tsx @@ -1,10 +1,10 @@ import Image from "next/image"; -export function Loader() { +export function Loader({ loadingText = "Loading…" }: { loadingText?: string }) { return (
Loading -

Loading…

+

{loadingText}

); } diff --git a/package.json b/package.json index e3aa17e..21934e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@risc0/ui", - "version": "0.0.51", + "version": "0.0.52", "sideEffects": false, "type": "module", "scripts": { @@ -34,7 +34,7 @@ "clsx": "2.1.1", "cmdk": "0.2.0", "lodash-es": "4.17.21", - "lucide-react": "0.372.0", + "lucide-react": "0.373.0", "next-themes": "0.3.0", "react-hook-form": "7.51.3", "sonner": "1.4.41",