added gpx dialog

This commit is contained in:
Fedor Katurov 2020-01-24 16:53:47 +07:00
parent 947ec69e60
commit e995b46641
33 changed files with 11687 additions and 131 deletions

View file

@ -151,3 +151,18 @@ export const editorSetDirection = (drawing_direction: IEditorState['drawing_dire
type: EDITOR_ACTIONS.SET_DIRECTION,
drawing_direction,
});
export const editorSetGpx = (gpx: Partial<IEditorState['gpx']>) => ({
type: EDITOR_ACTIONS.SET_GPX,
gpx,
});
export const editorUploadGpx = (file: File) => ({
type: EDITOR_ACTIONS.UPLOAD_GPX,
file,
});
export const editorDropGpx = (index: number) => ({
type: EDITOR_ACTIONS.DROP_GPX,
index,
});