Skip to content

Commit

Permalink
refactor: Remove loader from ContextThumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
eryc-cc committed Jul 9, 2022
1 parent 79e0a19 commit 3f0d98b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/atoms/ContextThumbnail/context-thumbnail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ interface ContextThumbnailProps {
size?: string | number;
}

const ContextThumbnailLoader = () => {
return "https://images.unsplash.com/photo-1534528741775-53994a69daeb?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1064&q=80";
};

const ContextThumbnail: React.FC<ContextThumbnailProps> = ({ className, customTailwindStyles, ContextThumbnailURL, alt, size }) => {
return (
<Image
className={`${className && className} ${customTailwindStyles && customTailwindStyles} rounded-lg border-1 border-slate-100 object-cover`}
alt={alt ? alt : "ContextThumbnail"} width={size} height={size} loader={ContextThumbnailLoader} src={ContextThumbnailURL ? ContextThumbnailURL : ContextThumbnailImage} />
alt={alt ? alt : "ContextThumbnail"} width={size} height={size} src={ContextThumbnailURL ? ContextThumbnailURL : ContextThumbnailImage} />
);
};

Expand Down

0 comments on commit 3f0d98b

Please sign in to comment.