Commit 6ceadd85 authored by Daniel Puchala's avatar Daniel Puchala
Browse files

feat: genres and actors are now shown in movie page

parent af658ead
......@@ -21,5 +21,5 @@ public class MovieDto extends GenericEntityDto {
private Integer releaseYear;
private Set<SimpleReviewDto> reviews;
private PersonDto director;
private Set<SimpleMovieDto> actors;
private Set<PersonDto> actors;
}
......@@ -65,9 +65,11 @@ export const Movie = () => {
</div>
<div className="flex flex-col p-4">
<p className="text-2xl font-bold">{movie.name}</p>
<p ><b>Genres:</b> {movie.genres.map((genre: any) => `${genre}, `)}</p>
<p>{movie.description}</p>
<p className="mt-auto"><b>Duration:</b> {formatDuration(movie.duration)}</p>
<p className="text-xl"><b>Director:</b> {movie.director.name}</p>
<p className="text-xl"><b>Director:</b> {movie.actors.map((actor: any) => `${actor.name}, `)}</p>
<button className="w-max p-4 self-center bg-blue-600 border-2 rounded-3xl border-slate-900"
onClick={changeShowStatus}>
{showReviews ? 'Show recommended movies' : 'Show reviews'}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment