@@ -64,7 +64,7 @@ const useStyles = makeStyles(theme => ({
6464 }
6565} ) ) ;
6666
67- const BookCard = ( prop : { book : Book } ) => {
67+ const BookCard = ( { book } : { book : Book } ) => {
6868 const classes = useStyles ( ) ;
6969 const [ expanded , setExpanded ] = React . useState ( false ) ;
7070 const handleExpandClick = ( ) => {
@@ -76,18 +76,18 @@ const BookCard = (prop: { book: Book }) => {
7676 Show this as an example of how we would use SSR
7777 <NextLink href={`/book?id=${book.id}`} as={`/book/${book.slug}`}>
7878 */ }
79- < NextLink href = { `/book?id=${ prop . book . id } ` } >
79+ < NextLink href = { `/book?id=${ book . id } ` } >
8080 < CardActionArea >
8181 < CardMedia
8282 className = { classes . cardMedia }
83- image = { prop . book . cover || '/static/images/cards/book.png' }
84- title = { prop . book . title }
83+ image = { book . cover || '/static/images/cards/book.png' }
84+ title = { book . title }
8585 />
8686 < CardContent className = { classes . cardContent } >
87- < Typography component = "h1" > { prop . book . title } </ Typography >
87+ < Typography component = "h1" > { book . title } </ Typography >
8888 < Typography component = "p" >
8989 Author:
90- { ` ${ prop . book . authorDisplayName } ` }
90+ { ` ${ book . authorDisplayName } ` }
9191 </ Typography >
9292 </ CardContent >
9393 </ CardActionArea >
@@ -108,7 +108,7 @@ const BookCard = (prop: { book: Book }) => {
108108 < Collapse in = { expanded } timeout = "auto" unmountOnExit >
109109 < CardContent className = { classes . cardContent } >
110110 < Typography paragraph className = { classes . cardDescription } >
111- { prop . book . description }
111+ { book . description }
112112 </ Typography >
113113 </ CardContent >
114114 </ Collapse >
0 commit comments