From de804cd44dc526148378410ba9cb580c3198e993 Mon Sep 17 00:00:00 2001 From: sophia-massie Date: Mon, 17 Feb 2025 17:56:15 -0600 Subject: [PATCH] fix/create-modal-flex --- .../CreateMapModal/CreateMapModal.tsx | 192 +++++++++--------- 1 file changed, 95 insertions(+), 97 deletions(-) diff --git a/react/src/components/CreateMapModal/CreateMapModal.tsx b/react/src/components/CreateMapModal/CreateMapModal.tsx index 7bd1ebee..3c28199f 100644 --- a/react/src/components/CreateMapModal/CreateMapModal.tsx +++ b/react/src/components/CreateMapModal/CreateMapModal.tsx @@ -1,9 +1,17 @@ import React, { useEffect, useState, useRef } from 'react'; -import { Section, SectionTableWrapper } from '@tacc/core-components'; import { FormItem } from 'react-hook-form-antd'; import { useForm } from 'react-hook-form'; import { zodResolver } from '@hookform/resolvers/zod'; -import { Button, Form, Input, Checkbox, Modal, Layout, Flex } from 'antd'; +import { + Button, + Form, + Input, + Checkbox, + Splitter, + Modal, + Layout, + Flex, +} from 'antd'; import { useNavigate } from 'react-router-dom'; import { z } from 'zod'; import { useAuthenticatedUser, useCreateProject } from '@hazmapper/hooks'; @@ -164,109 +172,99 @@ const CreateMapModal = ({ isOpen, closeModal }: CreateMapModalProps) => { , ]} > -
- + <> + +
- - - - - - - - - - .hazmapper - - } - /> - -
- - - {truncateMiddle(watch('saveLocationDisplay'), 78)} + + + + + + + + .hazmapper - -
+ } + /> + +
- -
- - When enabled, files in this folder are automatically synced - into the map periodically. + + {truncateMiddle(watch('saveLocationDisplay'), 78)}
- {errorMessage && ( -
{errorMessage}
- )} - - - -

- Select Link Save Location -

-

- If no folder is selected, the link file will be saved to the - root of the selected system.If you select a project, you can - link the current map to the project. -

- - } - manualContent={ - - } - /> - - } - /> +
+ + +
+ + When enabled, files in this folder are automatically synced + into the map periodically. + +
+ {errorMessage && ( +
{errorMessage}
+ )} + +
+ + +

+ Select Link Save Location +

+

+ If no folder is selected, the link file will be saved to the root + of the selected system.If you select a project, you can link the + current map to the project. +

+ manualContent= + { + + } +
+ + ); };