fixed range

This commit is contained in:
Fedor Katurov 2020-01-20 17:55:46 +07:00
parent c3e136cebb
commit b3adf4d556
5 changed files with 9 additions and 11 deletions

View file

@ -95,7 +95,7 @@
"reactrangeslider": "^3.0.6", "reactrangeslider": "^3.0.6",
"redux": "^4.0.1", "redux": "^4.0.1",
"redux-persist": "^5.10.0", "redux-persist": "^5.10.0",
"redux-saga": "^0.16.2", "redux-saga": "^1.0.0",
"reduxsauce": "^1.0.0", "reduxsauce": "^1.0.0",
"scrypt": "^6.0.3", "scrypt": "^6.0.3",
"throttle-debounce": "^2.1.0", "throttle-debounce": "^2.1.0",

View file

@ -22,7 +22,7 @@ const MapListDialogHead: FC<Props> = memo(
}), }),
{} {}
), ),
[] [max, min]
); );
return ( return (

View file

@ -1,5 +1,4 @@
import { call, put, takeEvery, takeLatest, select, race } from 'redux-saga/effects'; import { call, put, takeEvery, takeLatest, select, race, delay } from 'redux-saga/effects';
import { delay, SagaIterator } from 'redux-saga';
import { selectEditor, selectEditorMode } from '~/redux/editor/selectors'; import { selectEditor, selectEditorMode } from '~/redux/editor/selectors';
import { simplify } from '~/utils/simplify'; import { simplify } from '~/utils/simplify';
import { import {
@ -217,7 +216,7 @@ function* keyPressedSaga({ key, target }: ReturnType<typeof editorKeyPressed>) {
} }
} }
function* getGPXTrackSaga(): SagaIterator { function* getGPXTrackSaga() {
const { route, stickers, title, address }: ReturnType<typeof selectMap> = yield select(selectMap); const { route, stickers, title, address }: ReturnType<typeof selectMap> = yield select(selectMap);
if (!route.length && !stickers.length) return; if (!route.length && !stickers.length) return;

View file

@ -7,6 +7,7 @@ import {
race, race,
take, take,
takeLatest, takeLatest,
delay,
} from 'redux-saga/effects'; } from 'redux-saga/effects';
import { MAP_ACTIONS } from './constants'; import { MAP_ACTIONS } from './constants';
import { import {
@ -36,7 +37,6 @@ import { getStoredMap, postMap } from '~/utils/api';
import { Unwrap } from '~/utils/middleware'; import { Unwrap } from '~/utils/middleware';
import { selectMap, selectMapProvider, selectMapRoute, selectMapStickers } from './selectors'; import { selectMap, selectMapProvider, selectMapRoute, selectMapStickers } from './selectors';
import { TIPS } from '~/constants/tips'; import { TIPS } from '~/constants/tips';
import { delay } from 'redux-saga';
import { setReadySaga } from '../editor/sagas'; import { setReadySaga } from '../editor/sagas';
import { selectEditor } from '../editor/selectors'; import { selectEditor } from '../editor/selectors';
import { EDITOR_ACTIONS } from '../editor/constants'; import { EDITOR_ACTIONS } from '../editor/constants';

View file

@ -1,6 +1,5 @@
import { REHYDRATE, RehydrateAction } from 'redux-persist'; import { REHYDRATE, RehydrateAction } from 'redux-persist';
import { delay, SagaIterator } from 'redux-saga'; import { takeLatest, select, call, put, takeEvery, delay } from 'redux-saga/effects';
import { takeLatest, select, call, put, takeEvery } from 'redux-saga/effects';
import { import {
checkIframeToken, checkIframeToken,
checkUserToken, checkUserToken,
@ -198,7 +197,7 @@ function* searchSetTabSaga() {
yield put(searchSetTitle('')); yield put(searchSetTitle(''));
} }
function* userLogoutSaga(): SagaIterator { function* userLogoutSaga() {
yield put(setUser(DEFAULT_USER)); yield put(setUser(DEFAULT_USER));
yield call(generateGuestSaga); yield call(generateGuestSaga);
} }
@ -256,7 +255,7 @@ function* mapsLoadMoreSaga() {
yield put(searchSetLoading(false)); yield put(searchSetLoading(false));
} }
function* dropRouteSaga({ address }: ReturnType<typeof ActionCreators.dropRoute>): SagaIterator { function* dropRouteSaga({ address }: ReturnType<typeof ActionCreators.dropRoute>) {
const { token }: ReturnType<typeof selectUserUser> = yield select(selectUserUser); const { token }: ReturnType<typeof selectUserUser> = yield select(selectUserUser);
const { const {
routes: { routes: {
@ -290,7 +289,7 @@ function* modifyRouteSaga({
address, address,
title, title,
is_public, is_public,
}: ReturnType<typeof ActionCreators.modifyRoute>): SagaIterator { }: ReturnType<typeof ActionCreators.modifyRoute>) {
const { token }: ReturnType<typeof selectUserUser> = yield select(selectUserUser); const { token }: ReturnType<typeof selectUserUser> = yield select(selectUserUser);
const { const {
routes: { routes: {