extract YearHint component; fix fetchPriority casing
This commit is contained in:
1 parent
3dc2ebfe53
commit
c3adad3fc4
3 files changed
+35
-7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user