Skip to content

Commit

Permalink
[Chore] export action creator (#2315)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
Co-authored-by: Xun Li <lixun910@gmail.com>
  • Loading branch information
igorDykhta and lixun910 committed Sep 18, 2023
1 parent e051eb5 commit 69ce4d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/src/index.ts
Expand Up @@ -39,7 +39,7 @@ import {appInjector} from './container';
export {default as KeplerGl, default, injectComponents, ContainerFactory, ERROR_MSG} from './container';

// factories
export {default as KeplerGlFactory, DEFAULT_KEPLER_GL_PROPS, getVisibleDatasets, mapFieldsSelector, plotContainerSelector} from './kepler-gl';
export {default as KeplerGlFactory, DEFAULT_KEPLER_GL_PROPS, getVisibleDatasets, makeGetActionCreators, mapFieldsSelector, plotContainerSelector} from './kepler-gl';
export {default as SidePanelFactory} from './side-panel';
export {default as PanelTitleFactory} from './side-panel/panel-title';
export {default as MapContainerFactory, Attribution} from './map-container';
Expand Down
2 changes: 1 addition & 1 deletion src/components/src/kepler-gl.tsx
Expand Up @@ -742,7 +742,7 @@ const getDispatch = (dispatch, props) => dispatch;
const getUserActions = (dispatch, props) => props.actions || defaultUserActions;

/** @type {() => import('reselect').OutputParametricSelector<any, any, any, any>} */
function makeGetActionCreators() {
export function makeGetActionCreators() {
return createSelector([getDispatch, getUserActions], (dispatch, userActions) => {
const [visStateActions, mapStateActions, mapStyleActions, uiStateActions, providerActions] = [
VisStateActions,
Expand Down
3 changes: 2 additions & 1 deletion src/components/src/map-container.tsx
Expand Up @@ -158,7 +158,8 @@ export const isSplitSelector = props =>
export const Droppable = ({containerId}) => {
const {isOver, setNodeRef} = useDroppable({
id: containerId,
data: {type: 'map', index: containerId}
data: {type: 'map', index: containerId},
disabled: !containerId
});

return <StyledDroppable ref={setNodeRef} isOver={isOver} />;
Expand Down

0 comments on commit 69ce4d0

Please sign in to comment.