mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
added editable route
This commit is contained in:
parent
5664291c92
commit
fca52df9f5
17 changed files with 282 additions and 11 deletions
17
src/redux/map/actions.ts
Normal file
17
src/redux/map/actions.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { MAP_ACTIONS } from "./constants";
|
||||
import { IMapReducer } from "./";
|
||||
|
||||
export const mapSet = (map: Partial<IMapReducer>) => ({
|
||||
type: MAP_ACTIONS.SET_MAP,
|
||||
map
|
||||
});
|
||||
|
||||
export const mapSetProvider = (provider: IMapReducer['provider']) => ({
|
||||
type: MAP_ACTIONS.SET_PROVIDER,
|
||||
provider
|
||||
});
|
||||
|
||||
export const mapSetRoute = (route: IMapReducer['route']) => ({
|
||||
type: MAP_ACTIONS.SET_ROUTE,
|
||||
route,
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue