Skip to content

Commit

Permalink
Fixing Aladin marking wrong position (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusallein authored Mar 23, 2020
1 parent 9c75d7b commit ec2d7d9
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions frontend/src/components/Occultation/OccultationDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,19 @@ function OccultationDetail({ setTitle, match }) {
</CardContent>
</Card>
</Grid>
<Grid item xs={12} md={6} className={classes.block}>
<Card>
<CardHeader title="Sky map (Aladin)" />
<CardContent>
<CustomSkymap
ra={occultation.ra_star_candidate}
dec={occultation.dec_star_candidate}
/>
</CardContent>
</Card>
</Grid>
{occultation.ra_star_candidate && occultation.dec_star_candidate ? (
<Grid item xs={12} md={6} className={classes.block}>
<Card>
<CardHeader title="Sky map (Aladin)" />
<CardContent>
<CustomSkymap
ra={occultation.ra_star_candidate}
dec={occultation.dec_star_candidate}
/>
</CardContent>
</Card>
</Grid>
) : null}
</Grid>
</>
);
Expand Down

0 comments on commit ec2d7d9

Please sign in to comment.