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

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

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

NEW
8
const FieldWithButton = (props) => {
×
9
  const { submitting, invalid } = props.meta || {}
×
NEW
10
  const { buttonClassName, buttonLabel, buttonClickHandler, ...inputProps } = props
×
11
  return (
×
12
    <div className={cn('flex items-center')}>
13
      <Input
14
        {...inputProps}
15
        {...inputProps.input}
16
        className={cn(inputProps.className, 'rounded-tr-none rounded-br-none', {
17
          'border-red-500': invalid,
18
        })}
19
      />
20
      <div className="control">
21
        <Button
22
          type="submit"
23
          loading={submitting}
24
          disabled={submitting || invalid}
×
25
          onClick={buttonClickHandler}
26
          className={cn(buttonClassName, 'rounded-tl-none rounded-bl-none whitespace-nowrap')}
27
        >
28
          {buttonLabel}
29
        </Button>
30
      </div>
31
    </div>
32
  )
33
}
34

35
export default FieldWithButton
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