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
@@ -11,7 +11,7 @@ import { cn } from '@/lib/utils';
|
||||
|
||||
import Actions from './components/Actions';
|
||||
import Airing from './components/Airing';
|
||||
import Availability from './components/Availability';
|
||||
import YearHint from './components/YearHint';
|
||||
|
||||
interface Props {
|
||||
show?: Show & Partial<Details>;
|
||||
@@ -55,10 +55,7 @@ const Preview: FC<Props> = ({
|
||||
<span className='order-3 mb-4 text-3xl md:order-1 md:line-clamp-2'>{show.title}</span>
|
||||
|
||||
<div className='order-3 mb-4 flex w-full flex-wrap items-center gap-5 whitespace-nowrap text-sm md:order-2'>
|
||||
<span>{new Date(show.release).getFullYear()}</span>
|
||||
{Boolean(show.availability) && (
|
||||
<Availability availability={show.availability!} className='animate-fade-aside-slide-in opacity-0' />
|
||||
)}
|
||||
{Boolean(show.availability) ? <YearHint show={show} /> : <span>{new Date(show.release).getFullYear()}</span>}
|
||||
{Boolean(show.airing) && <Airing airing={show.airing!} className='animate-fade-aside-slide-in opacity-0' />}
|
||||
{Boolean(show.runtime) && (
|
||||
<span className='animate-fade-aside-slide-in opacity-0'>{show.runtime} minutes</span>
|
||||
|
||||
Reference in new issue
Block a user