Fix action for live tv schedule in experimental layout (#5934)

* Fix action for live tv schedule

* Fix indentation

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
grafixeyehero
2024-08-21 20:08:43 +03:00
committed by GitHub
parent 302ea0b6b0
commit 979c4b49e4
3 changed files with 8 additions and 1 deletions
@@ -11,6 +11,7 @@ import type { ItemDto } from 'types/base/models/item-dto';
import type { CardOptions } from 'types/cardOptions';
interface CardBoxProps {
action: string;
item: ItemDto;
cardOptions: CardOptions;
className: string;
@@ -23,6 +24,7 @@ interface CardBoxProps {
}
const CardBox: FC<CardBoxProps> = ({
action,
item,
cardOptions,
className,
@@ -57,6 +59,7 @@ const CardBox: FC<CardBoxProps> = ({
{layoutManager.desktop
&& !cardOptions.disableHoverMenu && (
<CardHoverMenu
action={action}
item={item}
cardOptions={cardOptions}
/>
@@ -15,11 +15,13 @@ import type { ItemDto } from 'types/base/models/item-dto';
import type { CardOptions } from 'types/cardOptions';
interface CardHoverMenuProps {
action: string,
item: ItemDto;
cardOptions: CardOptions;
}
const CardHoverMenu: FC<CardHoverMenuProps> = ({
action,
item,
cardOptions
}) => {
@@ -37,7 +39,8 @@ const CardHoverMenu: FC<CardHoverMenuProps> = ({
return (
<Box
className='cardOverlayContainer'
className='cardOverlayContainer itemAction'
data-action={action}
>
<a
href={url}
@@ -104,6 +104,7 @@ function useCard({ item, cardOptions }: UseCardProps) {
});
const getCardBoxProps = () => ({
action,
item,
cardOptions,
className: cardBoxClass,