rome -> eslint + prettier

This commit is contained in:
Ren Amamiya
2023-07-04 13:24:42 +07:00
parent 744fbd5683
commit a30cf66c2e
187 changed files with 10179 additions and 10066 deletions

View File

@@ -1,21 +1,21 @@
import { ImgHTMLAttributes } from "react";
import { ImgHTMLAttributes } from 'react';
interface Props extends ImgHTMLAttributes<any> {
fallback: string;
fallback: string;
}
export function Image({ src, fallback, ...props }: Props) {
return (
<img
{...props}
src={src || fallback}
onError={({ currentTarget }) => {
currentTarget.onerror = null;
currentTarget.src = fallback;
}}
decoding="async"
alt="lume default img"
style={{ contentVisibility: "auto" }}
/>
);
return (
<img
{...props}
src={src || fallback}
onError={({ currentTarget }) => {
currentTarget.onerror = null;
currentTarget.src = fallback;
}}
decoding="async"
alt="lume default img"
style={{ contentVisibility: 'auto' }}
/>
);
}