mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-05 04:01:39 +00:00
various clean up and fixes
This commit is contained in:
parent
01885c1a9b
commit
c84dd648ea
6 changed files with 8 additions and 28 deletions
|
|
@ -26,7 +26,7 @@ interface LibraryHeaderProps {
|
|||
|
||||
export const LibraryHeader = forwardRef(
|
||||
(
|
||||
{ background, blur, children, imageUrl, item, loading, title }: LibraryHeaderProps,
|
||||
{ background, blur, children, imageUrl, item, title }: LibraryHeaderProps,
|
||||
ref: Ref<HTMLDivElement>,
|
||||
) => {
|
||||
const { t } = useTranslation();
|
||||
|
|
@ -107,10 +107,11 @@ export const LibraryHeader = forwardRef(
|
|||
style={{ cursor: 'pointer' }}
|
||||
tabIndex={0}
|
||||
>
|
||||
{!loading && imageUrl && !isImageError && (
|
||||
{!isImageError && (
|
||||
<Image
|
||||
alt="cover"
|
||||
className={styles.image}
|
||||
loading="eager"
|
||||
onError={onImageError}
|
||||
src={imageUrl || ''}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue