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

IQSS / dataverse-frontend / 5401532692

28 Jun 2023 01:13PM CUT coverage: 98.336%. Remained the same
5401532692

push

github

GPortas
Fixed: typo in run-env.sh execution

136 of 142 branches covered (95.77%)

Branch coverage included in aggregate %.

455 of 459 relevant lines covered (99.13%)

72.31 hits per line

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

91.67
/packages/design-system/src/lib/components/form/form-group/form-element/FormLabel.tsx
1
import { PropsWithChildren } from 'react'
462✔
2
import { Form as FormBS } from 'react-bootstrap'
3
import { RequiredInputSymbol } from '../../required-input-symbol/RequiredInputSymbol'
4
import { Tooltip } from '../../../tooltip/Tooltip'
5

6
interface FormLabelProps {
7
  required?: boolean
8
  message?: string
9
  withinMultipleFieldsGroup?: boolean
10
}
11

12
export function FormLabel({
66✔
13
  required,
14
  message,
15
  withinMultipleFieldsGroup,
16
  children
17
}: PropsWithChildren<FormLabelProps>) {
18
  const layoutProps = withinMultipleFieldsGroup ? {} : { column: true, sm: 3 }
138!
19

20
  return (
138✔
21
    <FormBS.Label {...layoutProps}>
22
      {children}
23
      {required && <RequiredInputSymbol />}{' '}
148✔
24
      {message && <Tooltip placement="right" message={message}></Tooltip>}
142✔
25
    </FormBS.Label>
26
  )
27
}
66✔
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

© 2025 Coveralls, Inc