• 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/FormUtils/ControlInput.jsx
1
import React from 'react'
2

3
import { cn } from '@/lib/css-utils'
4

5
import { Input } from '../ui/input'
6

7
const ControlInput = (props) => {
×
8
  const {
9
    icon,
10
    className,
11
    meta: { touched, error },
12
    input,
UNCOV
13
  } = props
×
14

15
  return (
×
16
    <div className={className}>
17
      <div className="relative">
18
        <Input
19
          {...props}
20
          {...input}
21
          className={cn({
22
            'border-red-600': touched && error,
×
23
            'pl-10': icon,
24
          })}
25
        />
26
        {icon && <div className="absolute inset-y-0 left-0 flex items-center pl-3">{icon}</div>}
×
27
      </div>
28
      <div
29
        className={cn(
30
          'overflow-hidden transition-[height] duration-200 ease-out',
31
          touched && error ? 'h-5' : 'h-0',
×
32
        )}
33
      >
34
        <span className="text-xs text-red-600 pl-1">{error}</span>
35
      </div>
36
    </div>
37
  )
38
}
39

40
export default ControlInput
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