diff --git a/frontend/pages/specz_catalogs.js b/frontend/pages/specz_catalogs.js index ea77795..0881847 100644 --- a/frontend/pages/specz_catalogs.js +++ b/frontend/pages/specz_catalogs.js @@ -17,15 +17,14 @@ import EmailField from '../components/EmailField' import SearchField from '../components/SearchField' import SearchRadius from '../components/SearchRadius' import SpeczData from '../components/SpeczData' -import useStyles from '../styles/pages/products' +import { useTheme } from '@mui/system' function SpeczCatalogs() { - const classes = useStyles() + const theme = useTheme() const [combinedCatalogName, setCombinedCatalogName] = useState('') const [search, setSearch] = React.useState('') const filters = React.useState() - const [selectedSpeczCatalogs, setSelectedSpeczCatalogs] = useState([]) const [searchRadius, setSearchRadius] = useState('1.0') const [selectedOption, setSelectedOption] = useState('keepAll') const [email, setEmail] = useState('') @@ -35,10 +34,6 @@ function SpeczCatalogs() { setCombinedCatalogName(event.target.value) } - const handleSpeczCatalogsChange = event => { - setSelectedSpeczCatalogs(event.target.value) - } - const handleSearchRadiusChange = event => { const newValue = parseFloat(event.target.value) setSearchRadius(isNaN(newValue) ? '' : newValue.toString()) @@ -50,7 +45,6 @@ function SpeczCatalogs() { const handleClearForm = () => { setCombinedCatalogName('') - setSelectedSpeczCatalogs([]) setSearchRadius('1.0') setSelectedOption('keepAll') setEmail('') @@ -63,12 +57,22 @@ function SpeczCatalogs() { const handleSnackbarClose = () => { setSnackbarOpen(false) } + + const styles = { + root: { + transition: 'box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms', + borderRadius: '4px', + padding: theme.spacing(3), + flex: '1 1 0%' + } + } + return ( - + - + Combine Spec-z Catalogs - + 1. Combined catalog name: - - 2. Select the Spec-z Catalogs to include in your sample: - - - - - - + + + 2. Select the Spec-z Catalogs to include in your sample: + setSearch(query)} /> @@ -133,7 +120,7 @@ function SpeczCatalogs() { - + 3. Select the cross-matching configuration choices: @@ -153,7 +140,6 @@ function SpeczCatalogs() { - name - upload by - created at - - - - + + + 2. Select the Spec-z Catalogs to include in your sample: + setSearch(query)} /> @@ -149,9 +136,19 @@ function TrainingSetMaker() { onChange={handleLsstCatalogChange} sx={{ marginLeft: '16px' }} > + + DP0.1 + DP0.2 - DP1 - DP2 + + DP1 + + + DP2 + + + DR1 + @@ -173,7 +170,6 @@ function TrainingSetMaker() {