Skip to content

Commit

Permalink
feat: add genre
Browse files Browse the repository at this point in the history
  • Loading branch information
KillWolfVlad committed Sep 24, 2023
1 parent 5670d55 commit b9de9cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/movies/components/movieDrawer/movieDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ export const MovieDrawer: React.FC<IMovieDrawerProps> = ({
<ListItem>
<Typography noWrap>{movie.country}</Typography>
</ListItem>
<ListItem>
<Typography noWrap>{movie.genre}</Typography>
</ListItem>
<ListItem>
<Typography paragraph>{movie.description}</Typography>
</ListItem>
Expand Down
2 changes: 2 additions & 0 deletions src/movies/hooks/useMovies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const useMovies = (): IUseMoviesResult => {
readonly posterURL?: string;

readonly country?: string;
readonly genre?: string;

readonly torrents?: ReadonlyArray<{
readonly audio?: string;
Expand All @@ -73,6 +74,7 @@ export const useMovies = (): IUseMoviesResult => {
posterUrl: rawMovie.posterURL ?? "",

country: rawMovie.country ?? "",
genre: rawMovie.genre ?? "",

torrents:
rawMovie.torrents?.map((rawTorrent) => ({
Expand Down
1 change: 1 addition & 0 deletions src/movies/interfaces/movie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface IMovie {
readonly posterUrl: string;

readonly country: string;
readonly genre: string;

readonly torrents: ReadonlyArray<{
readonly name: string;
Expand Down

0 comments on commit b9de9cd

Please sign in to comment.