From acb6156ed273fdb60614d0d7deda18c7c68a3598 Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Sat, 4 Mar 2023 13:09:11 +0100 Subject: [PATCH] Replacing Shared by To... --- src/components/gpx-dialog/GpxDialog.tsx | 12 ++++++------ src/i18n/en.ts | 2 +- src/i18n/fr.ts | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/gpx-dialog/GpxDialog.tsx b/src/components/gpx-dialog/GpxDialog.tsx index 3384f13..39a27ec 100644 --- a/src/components/gpx-dialog/GpxDialog.tsx +++ b/src/components/gpx-dialog/GpxDialog.tsx @@ -98,15 +98,15 @@ const GpxDialog: Component<{}> = (props) => { gpx: gpx(), }); }; - const gpxSharedChangeHandler = (event: any) => { + const gpxToChangeHandler = (event: any) => { const newGpx: Gpx = cloneDeep(gpx()) as Gpx; if (!isPlainObject(newGpx.extensions)) { newGpx.extensions = {}; } - newGpx.extensions.shared = event.target.value; + newGpx.extensions.to = event.target.value; setGpx(newGpx); console.log({ - caller: 'GpxDialog / gpxSharedChangeHandler', + caller: 'GpxDialog / gpxToChangeHandler', value: event.target.value, gpx: gpx(), newGpx, @@ -190,11 +190,11 @@ const GpxDialog: Component<{}> = (props) => { InputProps={{ inputComponent: 'textarea' }} />