Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed May 17, 2019
1 parent a2a6671 commit b954ae7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export default function () {
&& (activity.attachments || []).length > 1
&& activity.attachmentLayout === 'carousel'
) {
// The following line is not a React functional component, it's a middleware function.
// Note that "children" is not a props, but first argument.
const CarouselActivity = children =>
<CarouselLayout activity={ activity } timestampClassName={ timestampClassName }>
{ children }
Expand All @@ -50,6 +52,8 @@ export default function () {
return CarouselActivity;
}

// The following line is not a React functional component, it's a middleware function.
// Note that "children" is not a props, but first argument.
const StackedActivity = children =>
<StackedLayout activity={ activity } timestampClassName={ timestampClassName }>
{ children }
Expand Down

0 comments on commit b954ae7

Please sign in to comment.