Skip to content

Commit

Permalink
Fix/predict occ asteroid redirect (#442)
Browse files Browse the repository at this point in the history
* Typo in occultation redirection

* Removing unecessary resize css
  • Loading branch information
matheusallein authored Mar 23, 2020
1 parent 85ac2bb commit 9c75d7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/components/helpers/CustomGridList.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ function CustomGridList({
}) {
const useStyles = makeStyles({
occMapImg: {
minWidth: 500,
minHeight: 415,
width: '100%',
cursor: handleImageClick !== null ? 'pointer' : 'normal',
},
Expand All @@ -32,7 +30,7 @@ function CustomGridList({
: row.asteroid_name;

return (
<Grid key={i} item xs={12} xl={4} lg={6} md={4} >
<Grid key={i} item xs={12} xl={4} lg={6} md={4}>
<Card>
<CardHeader title={`${row.date_time} - ${asteroidName}`} />
<CardContent>
Expand Down

0 comments on commit 9c75d7b

Please sign in to comment.