Skip to content

Commit

Permalink
[Bug] "load from storage" and "Share" modals fix (#1976)
Browse files Browse the repository at this point in the history
- fix @kepler.gl import in examples
  • Loading branch information
dariaterekhova-actionengine committed Sep 13, 2022
1 parent 9029b8e commit 4e88e83
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions examples/custom-map-style/src/store.ts
Expand Up @@ -19,8 +19,8 @@
// THE SOFTWARE.

import {createStore, combineReducers, applyMiddleware, compose} from 'redux';
import keplerGlReducer from 'kepler.gl/reducers';
import {enhanceReduxMiddleware} from 'kepler.gl/middleware';
import keplerGlReducer from '@kepler.gl/reducers';
import {enhanceReduxMiddleware} from '@kepler.gl/middleware';

const mapStyles = {
voyager: {
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-reducer/src/app.js
Expand Up @@ -24,7 +24,7 @@ import AutoSizer from 'react-virtualized/dist/commonjs/AutoSizer';
import KeplerGl from 'kepler.gl';
import {createAction} from 'redux-actions';

import {addDataToMap, wrapTo} from 'kepler.gl/actions';
import {addDataToMap, wrapTo} from '@kepler.gl/actions';
import sampleData from './data/sample-data';
import config from './configurations/config';

Expand Down
4 changes: 2 additions & 2 deletions examples/custom-reducer/src/store.js
Expand Up @@ -19,8 +19,8 @@
// THE SOFTWARE.

import {createStore, combineReducers, applyMiddleware, compose} from 'redux';
import keplerGlReducer, {uiStateUpdaters} from 'kepler.gl/reducers';
import {enhanceReduxMiddleware} from 'kepler.gl/middleware';
import keplerGlReducer, {uiStateUpdaters} from '@kepler.gl/reducers';
import {enhanceReduxMiddleware} from '@kepler.gl/middleware';
import appReducer from './app-reducer';
import window from 'global/window';

Expand Down
8 changes: 4 additions & 4 deletions examples/demo-app/src/app.js
Expand Up @@ -24,7 +24,7 @@ import styled, {ThemeProvider} from 'styled-components';
import window from 'global/window';
import {connect} from 'react-redux';

import {theme} from 'kepler.gl/styles';
import {theme} from '@kepler.gl/styles';
import Banner from './components/banner';
import Announcement, {FormLink} from './components/announcement';
import {replaceLoadDataModal} from './factories/load-data-modal';
Expand All @@ -40,10 +40,10 @@ import {
onLoadCloudMapSuccess
} from './actions';

import {loadCloudMap, addDataToMap, addNotification} from 'kepler.gl/actions';
import {loadCloudMap, addDataToMap, addNotification} from '@kepler.gl/actions';
import {CLOUD_PROVIDERS} from './cloud-providers';

const KeplerGl = require('kepler.gl/components').injectComponents([
const KeplerGl = require('@kepler.gl/components').injectComponents([
replaceLoadDataModal(),
replaceMapControl(),
replacePanelHeader()
Expand All @@ -61,7 +61,7 @@ import sampleAnimateTrip from './data/sample-animate-trip-data';
import sampleIconCsv, {config as savedMapConfig} from './data/sample-icon-csv';
import sampleGpsData from './data/sample-gps-data';

import {processCsvData, processGeojson} from 'kepler.gl/processors';
import {processCsvData, processGeojson} from '@kepler.gl/processors';
/* eslint-enable no-unused-vars */

const BannerHeight = 48;
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-app/src/cloud-providers/carto/carto-icon.js
Expand Up @@ -19,7 +19,7 @@
// THE SOFTWARE.

import React, {Component} from 'react';
import {Icons} from 'kepler.gl/components';
import {Icons} from '@kepler.gl/components';
import PropTypes from 'prop-types';

class CartoIcon extends Component {
Expand Down
Expand Up @@ -19,7 +19,7 @@
// THE SOFTWARE.

import React, {Component} from 'react';
import {Icons} from 'kepler.gl/components';
import {Icons} from '@kepler.gl/components';
import PropTypes from 'prop-types';

class DropboxIcon extends Component {
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-app/src/components/banner.js
Expand Up @@ -20,7 +20,7 @@

import React from 'react';
import styled from 'styled-components';
import {Icons} from 'kepler.gl/components';
import {Icons} from '@kepler.gl/components';

const StyledBanner = styled.div`
align-items: center;
Expand Down
Expand Up @@ -20,7 +20,7 @@

import React from 'react';
import styled from 'styled-components';
import {Icons} from 'kepler.gl/components';
import {Icons} from '@kepler.gl/components';
import {media} from 'kepler.gl/styles';
import {FormattedMessage} from 'react-intl';

Expand Down
2 changes: 1 addition & 1 deletion examples/demo-app/src/factories/load-data-modal.js
Expand Up @@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import {LoadDataModalFactory, withState} from 'kepler.gl/components';
import {LoadDataModalFactory, withState} from '@kepler.gl/components';
import {LOADING_METHODS} from '../constants/default-settings';

import SampleMapGallery from '../components/load-data-modal/sample-data-viewer';
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-app/src/store.js
Expand Up @@ -21,7 +21,7 @@
import {combineReducers, createStore, applyMiddleware, compose} from 'redux';
import {routerReducer, routerMiddleware} from 'react-router-redux';
import {browserHistory} from 'react-router';
import {enhanceReduxMiddleware} from 'kepler.gl/middleware';
import {enhanceReduxMiddleware} from '@kepler.gl/middleware';
import thunk from 'redux-thunk';
// eslint-disable-next-line no-unused-vars
import window from 'global/window';
Expand Down
2 changes: 1 addition & 1 deletion examples/replace-component/src/app-reducer.js
Expand Up @@ -19,7 +19,7 @@
// THE SOFTWARE.

import {createAction, handleActions} from 'redux-actions';
import KeplerGlSchema from 'kepler.gl/schemas';
import KeplerGlSchema from '@kepler.gl/schemas';

// CONSTANTS
export const INIT = 'INIT';
Expand Down
2 changes: 1 addition & 1 deletion examples/replace-component/src/components/custom-panel.js
Expand Up @@ -19,7 +19,7 @@
// THE SOFTWARE.

import React from 'react';
import {Icons} from 'kepler.gl/components';
import {Icons} from '@kepler.gl/components';

function CustomSidePanelsFactory() {
const CustomPanels = props => {
Expand Down
1 change: 1 addition & 0 deletions src/components/src/common/icons/index.tsx
Expand Up @@ -57,6 +57,7 @@ export {default as FreeWindow} from './free-window';
export {default as Gear} from './gear';
export {default as Hash} from './hash';
export {default as Histogram} from './histogram';
export {default as IconWrapper} from './base';
export {default as Info} from './info';
export {default as Layers} from './layers';
export {default as LeftArrow} from './left-arrow';
Expand Down

0 comments on commit 4e88e83

Please sign in to comment.