-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: create image component to avoid img domain erros
- Loading branch information
1 parent
517f5fb
commit e319502
Showing
4 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
/** @type {import('next').NextConfig} */ | ||
// TODO: DOMAIN JUST FOR TESTING, SHOUDL BE REMOVED OP-298 | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
images: { | ||
domains: ["file.coinexstatic.com"], | ||
}, | ||
}; | ||
const nextConfig = {}; | ||
export default nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import type React from "react"; | ||
|
||
interface ImageProps { | ||
src: string; | ||
alt: string; | ||
width?: number; | ||
height?: number; | ||
className?: string; | ||
} | ||
|
||
const Image: React.FC<ImageProps> = ({ | ||
src, | ||
alt, | ||
width, | ||
height, | ||
className, | ||
}) => { | ||
return ( | ||
<img | ||
src={src} | ||
alt={alt} | ||
width={width} | ||
height={height} | ||
className={className} | ||
/> | ||
); | ||
}; | ||
|
||
export default Image; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters