From 1c7dbb8af51d7e10c16f4cce15e3e435fb7cc601 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Tue, 9 Feb 2021 18:35:57 -0800 Subject: [PATCH] Minor fix. --- .../maps-page/action-dispatcher/export-dialog/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/webapp/src/components/maps-page/action-dispatcher/export-dialog/index.tsx b/packages/webapp/src/components/maps-page/action-dispatcher/export-dialog/index.tsx index b1a8630b..250df1b9 100644 --- a/packages/webapp/src/components/maps-page/action-dispatcher/export-dialog/index.tsx +++ b/packages/webapp/src/components/maps-page/action-dispatcher/export-dialog/index.tsx @@ -6,7 +6,7 @@ import { FormControl, FormControlLabel, MenuItem, Radio, RadioGroup, Select } fr import { useStyles } from './style'; import { Alert } from "@material-ui/lab"; -type ExportFormat = 'pdf' | 'svg' | 'jpeg' | 'png' | 'txt' | 'mm' | 'wxml' | 'xls' | 'txt'; +type ExportFormat = 'pdf' | 'svg' | 'jpg' | 'png' | 'txt' | 'mm' | 'wxml' | 'xls' | 'txt'; type ExportGroup = 'image' | 'document' | 'mindmap-tool'; type ExportDialogProps = { @@ -61,7 +61,7 @@ const ExportDialog = (props: ExportDialogProps) => { useEffect(() => { if (submit) { // Depending on the type of export. It will require differt POST. - if (exportFormat == 'pdf' || exportFormat == "svg" || exportFormat == "jpeg" || exportFormat == "png") { + if (exportFormat == 'pdf' || exportFormat == "svg" || exportFormat == "jpg" || exportFormat == "png") { formTransformtRef.submit(); } else { @@ -105,7 +105,7 @@ const ExportDialog = (props: ExportDialogProps) => { Scalable Vector Graphics (SVG) Portable Document Format (PDF) Portable Network Graphics (PNG) - JPEG Image (JPEG) + JPEG Image (JPEG) ) }