nominatim search (without working dialog)

This commit is contained in:
Fedor Katurov 2020-01-20 16:42:46 +07:00
parent c3e136cebb
commit b20a3445d1
27 changed files with 450 additions and 61 deletions

View file

@ -4,7 +4,6 @@ import { EditorPanel } from '~/components/panels/EditorPanel';
import { Fills } from '~/components/Fills';
import { UserPanel } from '~/components/panels/UserPanel';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { hot } from 'react-hot-loader';
import { Renderer } from '~/components/renderer/Renderer';
@ -14,7 +13,7 @@ import { TopLeftPanel } from '~/components/panels/TopLeftPanel';
import { TopRightPanel } from '~/components/panels/TopRightPanel';
import { LogoPreview } from '~/components/logo/LogoPreview';
import { IStickerPack } from '~/constants/stickers';
import { IDialogs } from '~/constants/dialogs';
import { DIALOGS } from '~/constants/dialogs';
import { Map } from '~/map/Map';
import { IEditorState } from '~/redux/editor';
@ -25,7 +24,7 @@ type Props = {
renderer_active: boolean;
mode: IEditorState['mode'];
dialog: keyof IDialogs;
dialog: keyof typeof DIALOGS;
dialog_active: boolean;
set: keyof IStickerPack;
editorHideRenderer: typeof editorHideRenderer;

View file

@ -1,13 +1,14 @@
import React, { createElement, FC, memo } from 'react';
import { DIALOGS, IDialogs } from '~/constants/dialogs';
import { DIALOGS } from '~/constants/dialogs';
import classnames from 'classnames';
import { AppInfoDialog } from '~/components/dialogs/AppInfoDialog';
import { Icon } from '~/components/panels/Icon';
import { MapListDialog } from '~/components/dialogs/MapListDialog';
import { NominatimDialog } from '~/components/dialogs/NominatimDialog';
import * as EDITOR_ACTIONS from '~/redux/editor/actions';
interface Props {
dialog: keyof IDialogs;
dialog: keyof typeof DIALOGS;
dialog_active: Boolean;
editorSetDialogActive: typeof EDITOR_ACTIONS.editorSetDialogActive;
}
@ -15,6 +16,7 @@ interface Props {
const LEFT_DIALOGS = {
[DIALOGS.MAP_LIST]: MapListDialog,
[DIALOGS.APP_INFO]: AppInfoDialog,
[DIALOGS.NOMINATIM]: NominatimDialog,
};
const LeftDialog: FC<Props> = memo(({ dialog, dialog_active, editorSetDialogActive }) => (