Skip to content

Commit

Permalink
correction of card layout (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
jandsonrj authored Feb 15, 2024
1 parent f294bd8 commit 35f7b8a
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions frontend/src/pages/PredictionEvents/Detail.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import React, { useEffect, useState } from 'react';
import moment from 'moment';
import { useParams } from 'react-router-dom'
import {
Grid,
Card,
CardHeader,
CardContent
} from '@material-ui/core';
import Grid from '@mui/material/Grid';
import Card from '@mui/material/Card';
import CardHeader from '@mui/material/CardHeader';
import CardContent from '@mui/material/CardContent'
import Box from '@mui/material/Box';
import List from '../../components/List';

Expand Down Expand Up @@ -255,7 +253,7 @@ function PredictionEventDetail() {
<>
<Grid container spacing={2}>
<Grid item xs={12} md={6}>
<Card>
<Card sx={{ height: '100%' }}>
<CardHeader title="Occultation Prediction Circumstances" />
<CardContent>
<List data={circumstances} />
Expand All @@ -270,15 +268,15 @@ function PredictionEventDetail() {
</Grid>
)}
<Grid item xs={12} md={6}>
<Card>
<Card sx={{ height: '100%' }}>
<CardHeader title="Occulted Star" />
<CardContent>
<List data={star} />
</CardContent>
</Card>
</Grid>
<Grid item xs={12} md={6}>
<Card>
<Card sx={{ height: '100%' }}>
<CardHeader title="Object" />
<CardContent>
<List data={object} />
Expand All @@ -292,12 +290,12 @@ function PredictionEventDetail() {
<Box
height={800}
>
{occultation?.id !== undefined && (
<AladinV3
ra={occultation?.ra_star_deg}
dec={occultation?.dec_star_deg}
{occultation?.id !== undefined && (
<AladinV3
ra={occultation?.ra_star_deg}
dec={occultation?.dec_star_deg}
/>
) }
) }
</Box>
</CardContent>
</Card>
Expand Down

0 comments on commit 35f7b8a

Please sign in to comment.