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 className="flex flex-col p-4">
<p className="text-2xl font-bold">{}</p>
<p ><b>Genres:</b> { any) => `${genre}, `)}</p>
<p className="mt-auto"><b>Duration:</b> {formatDuration(movie.duration)}</p>
<p className="text-xl"><b>Director:</b> {}</p>
<p className="text-xl"><b>Director:</b> { any) => `${}, `)}</p>
<button className="w-max p-4 self-center bg-blue-600 border-2 rounded-3xl border-slate-900"
{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