Skip to content

Commit

Permalink
onContentIntersect의 props를 required하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
torres-triple committed Oct 8, 2019
1 parent 5ef6f0a commit 3a31d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/recommended-contents/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function RecommendedContents<T extends ContentElementProps>({
contents: T[]
margin?: MarginPadding
onContentClick?: (e: React.SyntheticEvent, content: T) => any
onContentIntersect?: (content?: T) => any
onContentIntersect?: (content: T) => any
}) {
const contents = contentsData.map(({ title, ...content }) => ({
title: title.replace('\n', ' '),
Expand Down

0 comments on commit 3a31d18

Please sign in to comment.