Skip to content

Commit dd8c00f

Browse files
committed
Fix: routing issue. text for route paths was using translated text.
1 parent 7ddbfca commit dd8c00f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

netflix-create-react-vite-app/src/components/movie-list/movie-row.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const MovieRow = ({ title, movies }: MovieRowProps) => {
116116
<div key={movie.id} ref={idx === 0 ? cardRef : undefined}>
117117
<CardWrapper
118118
to={`/${
119-
movie.media_type === 'tv' ? t('shows') : t('movies')
119+
movie.media_type === 'tv' ? 'shows' : 'movies'
120120
}/${movie.id}`}
121121
>
122122
<SeasonalCard

netflix-create-react-vite-app/src/pages/my-list/my-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const MyList = () => {
103103
<StyledCardWrapper key={`${movie.id}-${item.media_type}`}>
104104
<CardWrapper
105105
to={`/${
106-
item.media_type === 'tv' ? t('shows') : t('movies')
106+
item.media_type === 'tv' ? 'shows' : 'movies'
107107
}/${movie.id}`}
108108
>
109109
<Card

0 commit comments

Comments
 (0)