File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
client/src/containers/Movie Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,14 @@ import { Spinner } from '../../components/Spinner';
9
9
import Actor from '../Actor' ;
10
10
11
11
const Movie = ( { movieID } ) => {
12
- const [ movie , loading , error ] = useMovieFetch ( movieID ) ;
12
+ const {
13
+ movie,
14
+ actors,
15
+ directors,
16
+ trailer,
17
+ loading,
18
+ error,
19
+ } = useMovieFetch ( movieID ) ;
13
20
14
21
if ( error ) return < div > Error</ div > ;
15
22
@@ -18,10 +25,10 @@ const Movie = ({ movieID }) => {
18
25
return (
19
26
< >
20
27
< Navigation movie = { movie . original_title } />
21
- < MovieInfo movie = { movie } />
28
+ { /* <MovieInfo movie={movie} /> */ }
22
29
< MovieInfoBar time = { movie . runtime } date = { movie . release_date } />
23
30
< Grid title = 'Actors' >
24
- { movie . actors . map ( ( actor ) => (
31
+ { actors . map ( ( actor ) => (
25
32
< Actor key = { actor . id } actor = { actor } />
26
33
) ) }
27
34
</ Grid >
@@ -30,7 +37,7 @@ const Movie = ({ movieID }) => {
30
37
} ;
31
38
32
39
Movie . propTypes = {
33
- location : PropTypes . object ,
40
+ movieID : PropTypes . string ,
34
41
} ;
35
42
36
43
export default Movie ;
You can’t perform that action at this time.
0 commit comments