• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CaptainFact / captain-fact-frontend / 12936416000

23 Jan 2025 08:45AM UTC coverage: 5.515% (-1.4%) from 6.953%
12936416000

push

github

Betree
chore: Migrate to tailwind

43 of 1641 branches covered (2.62%)

Branch coverage included in aggregate %.

6 of 301 new or added lines in 93 files covered. (1.99%)

93 existing lines in 38 files now uncovered.

192 of 2620 relevant lines covered (7.33%)

0.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/components/UsersActions/ReputationChangeTag.js
1
import { Star } from 'lucide-react'
2
import React from 'react'
3
import { withTranslation } from 'react-i18next'
4

5
import { Badge } from '../ui/badge'
6

7
function getTagType(reputation) {
8
  if (reputation < 0) {
×
NEW
9
    return 'destructive'
×
10
  } else {
11
    return 'success'
×
12
  }
13
}
14

15
const ReputationChangeTag = ({ t, reputation, size = 'small', withIcon = false }) => (
×
NEW
16
  <Badge variant={getTagType(reputation)} size={size} title={t('reputationChange')}>
×
17
    {withIcon && <Star size="1em" className="mr-1" />}
×
18
    {reputation > 0 && '+'}
×
19
    {reputation}
20
  </Badge>
21
)
22

23
export default withTranslation('user')(ReputationChangeTag)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc