Skip to content

Commit

Permalink
Add image
Browse files Browse the repository at this point in the history
  • Loading branch information
ducquando committed Jan 7, 2024
1 parent b6d289f commit 3383179
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
File renamed without changes
16 changes: 9 additions & 7 deletions src/views/image.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Do Duc Quan's Personal Website
// GNL General Public License v3
// Copyright (c) Do Duc Quan. All rights reserved.

import * as React from 'react';
import { useState, useEffect } from 'react';
import '../stylesheets/image.css';
Expand All @@ -23,12 +27,10 @@ export const FastImage = ({
}, [src]);

return (
<div className={className}>
<img
{...{ src: imgSource, ...props }}
className={`loading-image ${customClass} ${className}`}
alt={props.alt || ''}
/>
</div>
<img
{...{ src: imgSource, ...props }}
className={`loading-image ${customClass} ${className}`}
alt={props.alt || ''}
/>
);
};

0 comments on commit 3383179

Please sign in to comment.