mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
passing editing status to map
This commit is contained in:
parent
58eefd5670
commit
9c3c8cf46d
10 changed files with 213 additions and 65 deletions
|
@ -1,5 +1,6 @@
|
|||
import { MAP_ACTIONS } from "./constants";
|
||||
import { IMapReducer } from "./";
|
||||
import { IStickerDump } from "$modules/Sticker";
|
||||
|
||||
export const mapSet = (map: Partial<IMapReducer>) => ({
|
||||
type: MAP_ACTIONS.SET_MAP,
|
||||
|
@ -15,3 +16,14 @@ export const mapSetRoute = (route: IMapReducer['route']) => ({
|
|||
type: MAP_ACTIONS.SET_ROUTE,
|
||||
route,
|
||||
});
|
||||
|
||||
export const mapSetSticker = (index: number, sticker: IStickerDump) => ({
|
||||
type: MAP_ACTIONS.SET_STICKER,
|
||||
index,
|
||||
sticker,
|
||||
});
|
||||
|
||||
export const mapDropSticker = (index: number) => ({
|
||||
type: MAP_ACTIONS.DROP_STICKER,
|
||||
index,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue