Changeset View
Changeset View
Standalone View
Standalone View
web/sidebar/community-drawer.react.js
- This file was added.
// @flow | |||||
import * as React from 'react'; | |||||
import { ThreadListProvider } from '../chat/thread-list-provider'; | |||||
import CommunityDrawerContent from './community-drawer-content.react'; | |||||
function CommunityDrawer(): React.Node { | |||||
return ( | |||||
<ThreadListProvider> | |||||
<CommunityDrawerContent /> | |||||
</ThreadListProvider> | |||||
); | |||||
} | |||||
przemek: Is there a reason we've introduce new component just for wrapping it in a Provider?
Maybe we… | |||||
inkaAuthorUnsubmitted Done Inline ActionsIt was mostly done to keep a similar structure to what we have on native, where the counterpart to CommunityDrawer : CommunityDrawerNavigator has a lot of logic. But I suppose Community Picker can be considered the counterpart to CommunityDrawerNavigator. I'll change that, thank you inka: It was mostly done to keep a similar structure to what we have on native, where the counterpart… | |||||
export default CommunityDrawer; |
Is there a reason we've introduce new component just for wrapping it in a Provider?
Maybe we can rename CommunityDrawerContent to CommunityDrawer and wrap <div> it returns with the Provider