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

IQSS / dataverse-frontend / 7573388964

18 Jan 2024 04:54PM CUT coverage: 97.929% (+0.007%) from 97.922%
7573388964

push

github

MellyGray
feat(HomePagination): update the page query param when the page changes

473 of 488 branches covered (0.0%)

Branch coverage included in aggregate %.

1513 of 1540 relevant lines covered (98.25%)

4175.25 hits per line

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

90.0
/packages/design-system/src/lib/components/form/form-group/form-input-group/FormInputGroup.tsx
1
import React, { PropsWithChildren } from 'react'
224✔
2
import { InputGroup } from 'react-bootstrap'
3
import { FormInputGroupText } from './FormInputGroupText'
4
import { Col } from '../../../grid/Col'
5

6
interface FormInputGroupProps {
7
  hasVisibleLabel?: boolean
8
}
9

10
function FormInputGroup({ hasVisibleLabel, children }: PropsWithChildren<FormInputGroupProps>) {
11
  const childrenInsideGroup = React.Children.map(children as JSX.Element, (child) => {
10✔
12
    return React.cloneElement(child, {
20✔
13
      withinMultipleFieldsGroup: true
14
    })
15
  })
16

17
  return hasVisibleLabel ? (
10!
18
    <Col sm={9}>
19
      <InputGroup className="mb-3">{childrenInsideGroup}</InputGroup>
20
    </Col>
21
  ) : (
22
    <InputGroup className="mb-3">{childrenInsideGroup}</InputGroup>
23
  )
24
}
32✔
25

26
FormInputGroup.Text = FormInputGroupText
32✔
27

28
export { FormInputGroup }
32✔
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