Skip to content

Commit

Permalink
Refactor reference to 'children'
Browse files Browse the repository at this point in the history
As 'BottomSheetConsumer' was removed in 5232398, 'children' no longer needs to be returned as part of a function. In fact, this results in an error.

With this commit, the function surrounding the reference to 'children' is removed.
  • Loading branch information
Siobhan committed Aug 3, 2021
1 parent 5232398 commit b75e766
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ const BottomSheetSubSheet = ( {
<>
{ showSheet && (
<Fill>
<SafeAreaView>
{ () => {
return children;
} }
</SafeAreaView>
<SafeAreaView>{ children }</SafeAreaView>
</Fill>
) }
{ Children.count( children ) > 0 && navigationButton }
Expand Down

0 comments on commit b75e766

Please sign in to comment.