Skip to content

Commit

Permalink
Fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
itexpert120 committed Aug 12, 2024
1 parent 47fe55a commit 5e6824b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ImageWithFallback.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"use client";

import Image, { ImageProps } from "next/image";
import Image, { ImageProps, StaticImageData } from "next/image";
import { useEffect, useState } from "react";

interface ImageWithFallbackProps extends Omit<ImageProps, "src"> {
src: string | null;
src: string | StaticImageData | null;
fallback?: string;
}

Expand Down

0 comments on commit 5e6824b

Please sign in to comment.