diff --git a/src/Components/OpenModelControl.jsx b/src/Components/OpenModelControl.jsx index 7b1319d63..ededb6dc0 100644 --- a/src/Components/OpenModelControl.jsx +++ b/src/Components/OpenModelControl.jsx @@ -1,13 +1,12 @@ import React, {useState, useEffect} from 'react' import {useNavigate} from 'react-router-dom' import Box from '@mui/material/Box' -import InputLabel from '@mui/material/InputLabel' import Link from '@mui/material/Link' import MenuItem from '@mui/material/MenuItem' import Stack from '@mui/material/Stack' +import TextField from '@mui/material/TextField' import Typography from '@mui/material/Typography' -import FormControl from '@mui/material/FormControl' -import Select from '@mui/material/Select' +import useTheme from '@mui/styles/useTheme' import {useAuth0} from '@auth0/auth0-react' import Dialog from './Dialog' import {TooltipIconButton} from './Buttons' @@ -138,6 +137,7 @@ function OpenModelDialog({isDialogDisplayed, setIsDialogDisplayed, fileOpen, org direction="column" justifyContent="center" alignItems="center" + sx={{paddingTop: '6px'}} > {isAuthenticated ? @@ -186,6 +186,7 @@ function OpenModelDialog({isDialogDisplayed, setIsDialogDisplayed, fileOpen, org function SampleModelFileSelector({setIsDialogDisplayed}) { const navigate = useNavigate() const [selected, setSelected] = useState('') + const theme = useTheme() const handleSelect = (e, closeDialog) => { setSelected(e.target.value) const modelPath = { @@ -202,24 +203,54 @@ function SampleModelFileSelector({setIsDialogDisplayed}) { navigate({pathname: modelPath[e.target.value]}) closeDialog() } + return ( - - Sample Projects - - + handleSelect(e, () => setIsDialogDisplayed(false))} + variant='outlined' + label='Sample Projects' + select + size='small' + > + Momentum + Schneestock + Eisvogel + Seestrasse + Schependomlaan + Structural Detail + Bldrs plaza + ) } +