Skip to content

Commit

Permalink
Merge pull request #56 from florijanqosja/validate-fix
Browse files Browse the repository at this point in the history
update14
  • Loading branch information
florijanqosja authored Jan 1, 2024
2 parents e5a9eb7 + 025e68d commit f919cb8
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions web/src/components/Sections/Pricing.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,34 +98,34 @@ export default function Pricing() {
{summaryInfo && (
<Grid container spacing={3}>
<Grid item xs={12} sm={6} md={4}>
<Card className={`${classes.card} ${classes.labeledCard}`}>
<Card className={`${classes.card} ${classes.unlabeledCard}`}>
<CardContent align="center">
<Typography variant="h6" className={classes.label}>Labeled Data</Typography>
<Typography variant="body2">{`${summaryInfo.total_labeled} / ${(summaryInfo.total_labeled + summaryInfo.total_unlabeled + summaryInfo.total_validated)} entries`}</Typography>
<Typography variant="h6" className={classes.label}>Unlabeled Data</Typography>
<Typography variant="body2">{`${summaryInfo.total_unlabeled} / ${(summaryInfo.total_labeled + summaryInfo.total_unlabeled + summaryInfo.total_validated)} entries`}</Typography>
</CardContent>
</Card>
</Grid>
<Grid item xs={12} sm={6} md={4}>
<Card className={`${classes.card} ${classes.labeledCard}`}>
<Card className={`${classes.card} ${classes.unlabeledCard}`}>
<CardContent align="center">
<Typography variant="h6" className={classes.label}>Labeled Data Duration</Typography>
<Typography variant="body2">{`${secondsToHours(summaryInfo.total_duration_labeled)} hours`}</Typography>
<Typography variant="h6" className={classes.label}>Unlabeled Data Duration</Typography>
<Typography variant="body2">{`${secondsToHours(summaryInfo.total_duration_unlabeled)} hours`}</Typography>
</CardContent>
</Card>
</Grid>
<Grid item xs={12} sm={6} md={4}>
<Card className={`${classes.card} ${classes.unlabeledCard}`}>
<Card className={`${classes.card} ${classes.labeledCard}`}>
<CardContent align="center">
<Typography variant="h6" className={classes.label}>Unlabeled Data</Typography>
<Typography variant="body2">{`${summaryInfo.total_unlabeled} / ${(summaryInfo.total_labeled + summaryInfo.total_unlabeled + summaryInfo.total_validated)} entries`}</Typography>
<Typography variant="h6" className={classes.label}>Labeled Data</Typography>
<Typography variant="body2">{`${summaryInfo.total_labeled} / ${(summaryInfo.total_labeled + summaryInfo.total_unlabeled + summaryInfo.total_validated)} entries`}</Typography>
</CardContent>
</Card>
</Grid>
<Grid item xs={12} sm={6} md={4}>
<Card className={`${classes.card} ${classes.unlabeledCard}`}>
<Card className={`${classes.card} ${classes.labeledCard}`}>
<CardContent align="center">
<Typography variant="h6" className={classes.label}>Unlabeled Data Duration</Typography>
<Typography variant="body2">{`${secondsToHours(summaryInfo.total_duration_unlabeled)} hours`}</Typography>
<Typography variant="h6" className={classes.label}>Labeled Data Duration</Typography>
<Typography variant="body2">{`${secondsToHours(summaryInfo.total_duration_labeled)} hours`}</Typography>
</CardContent>
</Card>
</Grid>
Expand Down Expand Up @@ -205,10 +205,10 @@ export default function Pricing() {
<div className={classes.circularProgressbar}>
<CircularProgressbar
value={calculatePercentage(
summaryInfo.total_unlabeled,
(summaryInfo.total_unlabeled + summaryInfo.total_labeled),
(summaryInfo.total_labeled + summaryInfo.total_validated + summaryInfo.total_unlabeled))}
text={`${calculatePercentage(
summaryInfo.total_unlabeled,
(summaryInfo.total_unlabeled + summaryInfo.total_labeled),
(summaryInfo.total_labeled + summaryInfo.total_validated + summaryInfo.total_unlabeled))}%`}
styles={buildStyles({
strokeLinecap: 'butt',
Expand Down

0 comments on commit f919cb8

Please sign in to comment.