Skip to content

Commit

Permalink
ts fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
trevlenb2 committed Feb 14, 2024
1 parent edab12f commit 70e42f3
Showing 1 changed file with 40 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const DownloadSimulationResultsModal = ({ inputData, closeHandler, hierarchyIden
const mapData = useRef<PlanningLocationResponseTagged>();
let link = useRef<HTMLAnchorElement>(null);
const [activeTab, setActiveTab] = useState<string>('CSV');
const [includeParent, setIncludeParent] = useState<boolean>();
const [downLoadFullHierarchy, setDownLoadFullHierarchy] = useState<boolean>();
// const [includeParent, setIncludeParent] = useState<boolean>();
// const [downLoadFullHierarchy, setDownLoadFullHierarchy] = useState<boolean>();

const {
register,
Expand Down Expand Up @@ -267,44 +267,44 @@ const DownloadSimulationResultsModal = ({ inputData, closeHandler, hierarchyIden
);
}

const getFullHierarchySlider = () => {
return (
<Form.Group className="my-3">
<Form.Label>{t('simulationPage.downloadFullHierarchy')}</Form.Label>
<Form.Check
{...register('downloadFullHierarchy')}
type="switch"
id="custom-switch-full-hierarchy"
label={t('simulationPage.selectToDownloadFullHierarchy')}
defaultChecked={false}
checked={downLoadFullHierarchy}
onChange={e => {
setIncludeParent(false);
setDownLoadFullHierarchy(e.target.checked);
}}
/>
</Form.Group>
);
};
const getIncludeParentSlider = () => {
return (
<Form.Group className="my-3">
<Form.Label>{t('simulationPage.includeParentData')}</Form.Label>
<Form.Check
{...register('includeParentData')}
type="switch"
id="custom-switch-parent"
label={t('simulationPage.selectToIncludeParentData')}
defaultChecked={false}
checked={includeParent}
onChange={e => {
setIncludeParent(e.target.checked);
setDownLoadFullHierarchy(false);
}}
/>
</Form.Group>
);
};
// const getFullHierarchySlider = () => {
// return (
// <Form.Group className="my-3">
// <Form.Label>{t('simulationPage.downloadFullHierarchy')}</Form.Label>
// <Form.Check
// {...register('downloadFullHierarchy')}
// type="switch"
// id="custom-switch-full-hierarchy"
// label={t('simulationPage.selectToDownloadFullHierarchy')}
// defaultChecked={false}
// checked={downLoadFullHierarchy}
// onChange={e => {
// setIncludeParent(false);
// setDownLoadFullHierarchy(e.target.checked);
// }}
// />
// </Form.Group>
// );
// };
// const getIncludeParentSlider = () => {
// return (
// <Form.Group className="my-3">
// <Form.Label>{t('simulationPage.includeParentData')}</Form.Label>
// <Form.Check
// {...register('includeParentData')}
// type="switch"
// id="custom-switch-parent"
// label={t('simulationPage.selectToIncludeParentData')}
// defaultChecked={false}
// checked={includeParent}
// onChange={e => {
// setIncludeParent(e.target.checked);
// setDownLoadFullHierarchy(false);
// }}
// />
// </Form.Group>
// );
// };

return (
<Modal size="lg" show centered scrollable backdrop="static" keyboard={false} onHide={closeHandler}>
Expand Down

0 comments on commit 70e42f3

Please sign in to comment.