Skip to content

Commit

Permalink
chore(project): rename redirectUrl to url
Browse files Browse the repository at this point in the history
  • Loading branch information
olga-jwp committed Jul 21, 2023
1 parent 6ded1eb commit 051e7d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type CardProps = {
isCurrent?: boolean;
isLocked?: boolean;
currentLabel?: string;
redirectUrl?: string;
url?: string;
};

function Card({
Expand All @@ -44,7 +44,7 @@ function Card({
isCurrent = false,
isLocked = true,
currentLabel,
redirectUrl,
url,
}: CardProps): JSX.Element {
const { title, duration, episodeNumber, seasonNumber, cardImage: image, mediaStatus, scheduledStart } = item;
const {
Expand Down Expand Up @@ -90,7 +90,7 @@ function Card({

return (
<Link
to={redirectUrl ?? ''}
to={url ?? ''}
className={cardClassName}
onClick={onClick}
onMouseEnter={onHover}
Expand Down
2 changes: 1 addition & 1 deletion src/components/CardGrid/CardGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function CardGrid({
<div role="cell">
<Card
progress={watchHistory ? watchHistory[mediaid] : undefined}
redirectUrl={url}
url={url}
onClick={() => onCardClick(playlistItem, playlistItem.feedid)}
onHover={typeof onCardHover === 'function' ? () => onCardHover(playlistItem) : undefined}
loading={isLoading}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Shelf/Shelf.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const Shelf = ({
isLocked={isLocked(accessModel, isLoggedIn, hasSubscription, item)}
posterAspect={posterAspect}
item={item}
redirectUrl={isInView ? url : undefined}
url={isInView ? url : undefined}
/>
);
},
Expand Down

0 comments on commit 051e7d2

Please sign in to comment.