ExportDataPluginSheet
Summary: _typescript_ Reviewed By: passy Differential Revision: D17284491 fbshipit-source-id: d19a98dd5e6b0ee7d1ac81acfbc814b229894ecb
This commit is contained in:
committed by
Facebook Github Bot
parent
e1b0af0f4b
commit
fbe8e92991
@@ -20,13 +20,14 @@ import {
|
||||
setExportDataToFileActiveSheet as getExportDataToFileActiveSheetAction,
|
||||
} from '../reducers/application';
|
||||
import SelectPluginSheet from './SelectPluginSheet';
|
||||
import {Dispatch, Action} from 'redux';
|
||||
|
||||
type OwnProps = {
|
||||
onHide: () => any;
|
||||
};
|
||||
|
||||
type StateFromProps = {
|
||||
share: ShareType;
|
||||
share: ShareType | null;
|
||||
plugins: PluginState;
|
||||
pluginStates: PluginStatesState;
|
||||
};
|
||||
@@ -90,17 +91,15 @@ export default connect<StateFromProps, DispatchFromProps, OwnProps, Store>(
|
||||
plugins,
|
||||
pluginStates,
|
||||
}),
|
||||
dispatch => {
|
||||
return {
|
||||
selectedPlugins: (plugins: Array<string>) => {
|
||||
dispatch(actionForSelectedPlugins(plugins));
|
||||
},
|
||||
setActiveSheet: (payload: ActiveSheet) => {
|
||||
dispatch(getActiveSheetAction(payload));
|
||||
},
|
||||
setExportDataToFileActiveSheet: (payload: string) => {
|
||||
dispatch(getExportDataToFileActiveSheetAction(payload));
|
||||
},
|
||||
};
|
||||
},
|
||||
(dispatch: Dispatch<Action<any>>) => ({
|
||||
selectedPlugins: (plugins: Array<string>) => {
|
||||
dispatch(actionForSelectedPlugins(plugins));
|
||||
},
|
||||
setActiveSheet: (payload: ActiveSheet) => {
|
||||
dispatch(getActiveSheetAction(payload));
|
||||
},
|
||||
setExportDataToFileActiveSheet: (payload: string) => {
|
||||
dispatch(getExportDataToFileActiveSheetAction(payload));
|
||||
},
|
||||
}),
|
||||
)(ExportDataPluginSheet);
|
||||
|
||||
Reference in New Issue
Block a user