Skip to content

Commit

Permalink
Merge branch 'main' into ms2/select-role-folder
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeTrost authored Nov 27, 2024
2 parents 10272d4 + 34ee1e8 commit 2c0bf54
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/management-system-v2/components/process-export.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import React, { useEffect, useState } from 'react';

import { Modal, Checkbox, Radio, RadioChangeEvent, Space, Flex, Divider, Tooltip } from 'antd';
import type { CheckboxValueType } from 'antd/es/checkbox/Group';

import { useEnvironment } from './auth-can';
import { exportProcesses } from '@/lib/process-export';
Expand Down Expand Up @@ -107,9 +106,7 @@ const ProcessExportModal: React.FC<ProcessExportModalProps> = ({
setSelectedType(preselectedExportType);
}, [preselectedExportType]);

const [selectedOptions, setSelectedOptions] = useState<CheckboxValueType[]>(
['metaData'].concat(pdfOptions),
);
const [selectedOptions, setSelectedOptions] = useState<string[]>(['metaData'].concat(pdfOptions));

const [isExporting, setIsExporting] = useState(false);
const [pngScalingFactor, setPngScalingFactor] = useState(1.5);
Expand All @@ -120,7 +117,7 @@ const ProcessExportModal: React.FC<ProcessExportModalProps> = ({
setSelectedType(value);
};

const handleOptionSelectionChange = (checkedValues: CheckboxValueType[]) => {
const handleOptionSelectionChange = (checkedValues: string[]) => {
setSelectedOptions(checkedValues);
};

Expand Down

0 comments on commit 2c0bf54

Please sign in to comment.