Skip to content

Commit

Permalink
fix: remove next image
Browse files Browse the repository at this point in the history
  • Loading branch information
nahoc committed Sep 17, 2024
1 parent 1e14b8c commit e500861
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 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-37.29%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-73.75%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-60.46%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-37.29%25-red.svg?style=flat) |
| ![Statements](https://img.shields.io/badge/statements-37.25%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-73.75%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-60.46%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-37.25%25-red.svg?style=flat) |
4 changes: 1 addition & 3 deletions loader.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import Image from "next/image";

export function Loader({ loadingText = "Loading…" }: { loadingText?: string }) {
return (
<div className="mx-auto flex animate-fade-in-up flex-col items-center justify-center gap-3">
<Image unoptimized height={120} width={128} src="/loading.gif" alt="Loading" />
<img height={120} width={128} src="/loading.gif" alt="Loading" />
<p className="text-sm">{loadingText}</p>
</div>
);
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@risc0/ui",
"version": "0.0.166",
"version": "0.0.167",
"private": false,
"sideEffects": false,
"type": "module",
Expand Down Expand Up @@ -36,7 +36,6 @@
"clsx": "2.1.1",
"cmdk": "1.0.0",
"lucide-react": "0.441.0",
"next": "15.0.0-canary.152",
"next-themes": "0.3.0",
"radash": "12.1.0",
"react-hook-form": "7.52.2",
Expand Down

0 comments on commit e500861

Please sign in to comment.