Change NotificationsHub to StaticView

Summary:
- Point the Noitifications to the static view
- Add function to check activeness of static view
- Add `SupportRequestDetails` to type (needed?)

Reviewed By: mweststrate

Differential Revision: D18810149

fbshipit-source-id: a33f61f521f3db0dd2a73e56d99b12d029b46a57
This commit is contained in:
Chaiwat Ekkaewnumchai
2019-12-05 03:24:51 -08:00
committed by Facebook Github Bot
parent 8df91d198f
commit 07487e8122
5 changed files with 156 additions and 48 deletions

View File

@@ -141,7 +141,9 @@ export class App extends React.Component<Props> {
<FlexRow grow={true}>
{this.props.leftSidebarVisible && <MainSidebar />}
{this.props.staticView != null ? (
React.createElement(this.props.staticView)
React.createElement(this.props.staticView, {
logger: this.props.logger,
})
) : (
<PluginContainer logger={this.props.logger} />
)}