diff --git a/frontend/src/components/PredictionOccultation/PredictionOccultationAsteroid.js b/frontend/src/components/PredictionOccultation/PredictionOccultationAsteroid.js index 5ce68d638..4ce37d26e 100644 --- a/frontend/src/components/PredictionOccultation/PredictionOccultationAsteroid.js +++ b/frontend/src/components/PredictionOccultation/PredictionOccultationAsteroid.js @@ -436,7 +436,7 @@ function PredictionOccultationAsteroid({ const handleBackNavigation = () => history.push(`/prediction-of-occultation/${asteroidData.predict_run}`); - const handleImageClick = (id) => history.push(`/occultations/${id}`); + const handleImageClick = (occultationId) => history.push(`/occultation/${occultationId}`); return ( <> diff --git a/frontend/src/components/helpers/CustomGridList.js b/frontend/src/components/helpers/CustomGridList.js index b66587d8b..29dbb0f09 100644 --- a/frontend/src/components/helpers/CustomGridList.js +++ b/frontend/src/components/helpers/CustomGridList.js @@ -13,8 +13,6 @@ function CustomGridList({ }) { const useStyles = makeStyles({ occMapImg: { - minWidth: 500, - minHeight: 415, width: '100%', cursor: handleImageClick !== null ? 'pointer' : 'normal', }, @@ -32,7 +30,7 @@ function CustomGridList({ : row.asteroid_name; return ( - +