Skip to content

Commit

Permalink
updated CreateMapModal
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanaijaz committed Jan 7, 2025
1 parent 7fb9c46 commit 0377d98
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions react/src/components/CreateMapModal/CreateMapModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,12 @@ const CreateMapModal = ({
parentToggle(); // Call the original toggle function passed as a prop
};

const [selectedFiles, setSelectedFiles] = useState([] as any[]);
const [saveLocation, setSaveLocation] = useState('');

const handleDirectoryChange = (directory: string) => {
setSaveLocation(directory);
};

const handleSelectedFiles = (files: any[]) => {
setSelectedFiles(files);
};

const handleCreateProject = (projectData: ProjectRequest) => {
createProject(projectData, {
onSuccess: (newProject) => {
Expand Down Expand Up @@ -228,7 +223,6 @@ const CreateMapModal = ({
<FileListing
disableSelection={false}
onFolderSelect={handleDirectoryChange}
onFileSelect={handleSelectedFiles}
showPublicSystems={false}
/>
}
Expand Down

0 comments on commit 0377d98

Please sign in to comment.