Skip to content

Commit

Permalink
[Chore] export action creator
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <[email protected]>
  • Loading branch information
lixun910 authored and igorDykhta committed Sep 18, 2023
1 parent 8bb0d46 commit 94deb4f
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 94deb4f

Please sign in to comment.