Skip to content

Commit a5575a8

Browse files
committed
fix build err
1 parent 4c80ccf commit a5575a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

web/src/components/ImageFallback.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { useEffect, useState } from "react";
2-
31
type Props = {
42
url?: string;
53
fallback: React.ReactElement;
@@ -8,7 +6,7 @@ type Props = {
86
};
97

108
// https://medium.com/@abhishekmicosoft/handling-img-fallback-307653b2f30
11-
export function ImageFallback({ width, height, url, fallback }: Props) {
9+
export function ImageFallback({ width, height, url }: Props) {
1210
const URL = url?.startsWith("/")
1311
? `${import.meta.env.VITE_API_ENDPOINT}${url}`
1412
: url;

0 commit comments

Comments
 (0)