• 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/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