extract YearHint component; fix fetchPriority casing

This commit is contained in:
ner committed 2026-08-05 18:45:17 +03:00
1 parent 3dc2ebfe53
commit c3adad3fc4
3 files changed
+35 -7

No files matched your search

+2 -2
View File
@@ -12,10 +12,10 @@ interface Props {
priority?: boolean;
}
type FetchPriorityProps = ImgHTMLAttributes<HTMLImageElement> & { fetchpriority?: 'high' | 'low' | 'auto' };
type FetchPriorityProps = ImgHTMLAttributes<HTMLImageElement> & { fetchPriority?: 'high' | 'low' | 'auto' };
const Poster: FC<Props> = ({ show, onClick, className, lazy = true, priority = false }) => {
const fetchPriorityProps: FetchPriorityProps = priority ? { fetchpriority: 'high' } : {};
const fetchPriorityProps: FetchPriorityProps = priority ? { fetchPriority: 'high' } : {};
return (
<div