Migrate launcher
Summary: _typescript_ Reviewed By: jknoxville Differential Revision: D16711748 fbshipit-source-id: e874b5b6197e64ab7db1d8daecf42a4b52b8c2a8
This commit is contained in:
committed by
Facebook Github Bot
parent
85aeaa0e47
commit
8c05c73c5f
21
src/utils/launcher.tsx
Normal file
21
src/utils/launcher.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Copyright 2018-present Facebook.
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {ProcessConfig} from './processConfig';
|
||||
import {Store} from '../reducers/index';
|
||||
|
||||
export function initLauncherHooks(config: ProcessConfig, store: Store) {
|
||||
if (config.launcherMsg) {
|
||||
store.dispatch({
|
||||
type: 'LAUNCHER_MSG',
|
||||
payload: {
|
||||
severity: 'warning',
|
||||
message: config.launcherMsg,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user