Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
janash committed Oct 5, 2023
1 parent e823341 commit 9c2c36a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/KetcherPopup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { StandaloneStructServiceProvider } from 'ketcher-standalone';
import { Editor } from 'ketcher-react';
import "ketcher-react/dist/index.css";


const structServiceProvider = new StandaloneStructServiceProvider();

const Transition = React.forwardRef(function Transition(props, ref) {
Expand Down Expand Up @@ -41,6 +40,7 @@ export default function FullScreenDialog({ ketcherCallBack }) {
<div>
<Button variant="contained" sx={{ mb: 5 }} onClick={handleClickOpen}>
Open Molecular Sketcher
</Button>
<Dialog
fullWidth={true}
maxWidth={"lg"}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Neighbors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default function NeighborSearchHook () {
/>
</Box>
<Box display="flex" justifyContent="center">
{ (isLoading || isLoadingMore) ? <CircularProgress />: <Button disabled={updatedParameters} variant="contained" sx={{ m: 0.5 }} onClick={ () => loadMore() }>Load More</Button>
{ (isLoading || isLoadingMore) ? <CircularProgress />: <Button disabled={updatedParameters} variant="contained" sx={{ m: 0.5 }} onClick={ () => loadMore() }>Load More</Button> }
</Box>
<Container sx={{justifyContent: 'center', my: 3}}>
<Box sx={{ display: 'flex' }} justifyContent="center">
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/SearchHook.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import CircularProgress from '@mui/material/CircularProgress';

import { Switch } from '@mui/material';
import Button from '@mui/material/Button';
import { ThemeProvider } from '@mui/material/styles';

import FullScreenDialog from '../components/KetcherPopup';

Expand Down Expand Up @@ -214,7 +213,9 @@ export default function SearchHook () {
{ dynamicGrid(svg_results) }
<Box sx={{ display: 'flex', justifyContent: 'center', my: 3 }}>
{ isLoadingMore ? <CircularProgress />
:
<Button disabled={updatedParameters} variant="contained" sx={{ my: 3 }} onClick={ () => loadMore() } >Load More</Button>

}
</Box>
</Container> }
Expand Down

0 comments on commit 9c2c36a

Please sign in to comment.