updated aliases

This commit is contained in:
Fedor Katurov 2020-01-08 14:38:20 +07:00
parent af8d270460
commit e950d98b73
74 changed files with 300 additions and 390 deletions

View file

@ -1,8 +1,8 @@
import axios from 'axios/index';
import { API } from '$constants/api';
import { IRootState, IRouteListItem } from '$redux/user';
import { IUser } from '$constants/auth';
import { CLIENT } from '$config/frontend';
import { API } from '~/constants/api';
import { IRootState, IRouteListItem } from '~/redux/user';
import { IUser } from '~/constants/auth';
import { CLIENT } from '~/config/frontend';
import { LatLngLiteral } from 'leaflet';
import {
resultMiddleware,
@ -10,7 +10,7 @@ import {
IResultWithStatus,
configWithToken,
} from './middleware';
import { IRoute } from '$redux/map/types';
import { IRoute } from '~/redux/map/types';
const arrayToObject = (array: any[], key: string): {} =>
array.reduce((obj, el) => ({ ...obj, [el[key]]: el }), {});