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

stacklok / codegate-ui / 13901943943

17 Mar 2025 02:26PM UTC coverage: 61.736% (-4.7%) from 66.452%
13901943943

Pull #345

github

web-flow
Merge 1eb6d6f83 into 5d463ef04
Pull Request #345: feat: react-hook-form field array for provider muxes

442 of 798 branches covered (55.39%)

Branch coverage included in aggregate %.

63 of 93 new or added lines in 21 files covered. (67.74%)

52 existing lines in 5 files now uncovered.

902 of 1379 relevant lines covered (65.41%)

36.85 hits per line

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

0.0
/src/features/workspace/components/tmp/form-submit-button.tsx
1
import { Button } from '@stacklok/ui-kit'
2
import type { ComponentProps } from 'react'
3
import { useFormState } from 'react-hook-form'
4

5
export function FormSubmitButton({
6
  children = 'Submit',
×
7
  variant = 'primary',
×
8
  ...props
9
}: ComponentProps<typeof Button>) {
NEW
10
  const { isSubmitting, isValidating, isDirty } = useFormState()
×
11

12
  return (
13
    <Button
14
      {...props}
15
      variant={variant}
16
      type="submit"
17
      isDisabled={isDirty === false}
18
      isPending={
19
        props.isPending === true ||
×
20
        isSubmitting === true ||
21
        isValidating === true
22
      }
23
    >
24
      {children}
25
    </Button>
26
  )
27
}
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