diff options
author | akshitkrnagpal <akshitkrnagpal@gmail.com> | 2018-05-24 20:05:26 +0530 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2018-05-24 17:13:21 +0200 |
commit | 923392cf0a9ce4c7830b048266ada7df5c959917 (patch) | |
tree | 194a4159fea808a73b4e30a5b8e3998939c38f9b /app | |
parent | ff3b9d9251d10c34123021d6e67a4699ebcac5f4 (diff) |
Configured flow
Diffstat (limited to 'app')
-rw-r--r-- | app/features/app/components/App.js | 4 | ||||
-rw-r--r-- | app/features/conference/components/Conference.js | 7 | ||||
-rw-r--r-- | app/index.js | 3 |
3 files changed, 12 insertions, 2 deletions
diff --git a/app/features/app/components/App.js b/app/features/app/components/App.js index 2afd502..93ab79f 100644 --- a/app/features/app/components/App.js +++ b/app/features/app/components/App.js @@ -1,3 +1,5 @@ +// @flow + import React, { Component } from 'react'; import { Conference } from '../../conference'; @@ -6,7 +8,7 @@ import config from '../../config'; /** * Main component encapsulating the entire application. */ -export default class App extends Component { +export default class App extends Component<{}> { /** * Initializes a new {@code App} instance. * diff --git a/app/features/conference/components/Conference.js b/app/features/conference/components/Conference.js index e77ece9..d9aa1e7 100644 --- a/app/features/conference/components/Conference.js +++ b/app/features/conference/components/Conference.js @@ -1,3 +1,5 @@ +// @flow + import { Component } from 'react'; import { @@ -5,6 +7,8 @@ import { setupScreenSharingForWindow, setupAlwaysOnTopRender, setupWiFiStats + + // $FlowFixMe } from 'jitsi-meet-electron-utils'; import config from '../../config'; @@ -12,7 +16,7 @@ import config from '../../config'; /** * Jitsi Meet Window Component */ -export default class Conference extends Component { +export default class Conference extends Component<{}> { /** * Attach the script */ @@ -24,6 +28,7 @@ export default class Conference extends Component { script.onerror = console.error; script.src = `https://${config.defaultDomain}/external_api.js`; + // $FlowFixMe document.head.appendChild(script); } diff --git a/app/index.js b/app/index.js index 968cd0f..9cd7479 100644 --- a/app/index.js +++ b/app/index.js @@ -1,3 +1,5 @@ +// @flow + import React from 'react'; import { render } from 'react-dom'; @@ -5,5 +7,6 @@ import { App } from './features/app'; /** * Render the main / root application. + * $FlowFixMe */ render(<App />, document.getElementById('app')); |