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

CaptainFact / captain-fact-frontend / 12937903925

23 Jan 2025 08:56PM UTC coverage: 5.504% (-1.4%) from 6.953%
12937903925

push

github

web-flow
chore: Migrate to tailwind (#1355)

43 of 1647 branches covered (2.61%)

Branch coverage included in aggregate %.

6 of 306 new or added lines in 94 files covered. (1.96%)

94 existing lines in 39 files now uncovered.

192 of 2623 relevant lines covered (7.32%)

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