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

inclusion-numerique / coop-mediation-numerique / 94c91f81-01e2-41ce-927e-502f1c8a6ec4

18 Feb 2026 03:57PM UTC coverage: 10.79% (+3.7%) from 7.093%
94c91f81-01e2-41ce-927e-502f1c8a6ec4

push

circleci

web-flow
Merge pull request #434 from inclusion-numerique/dev

Release

684 of 10101 branches covered (6.77%)

Branch coverage included in aggregate %.

88 of 171 new or added lines in 26 files covered. (51.46%)

797 existing lines in 85 files now uncovered.

2096 of 15664 relevant lines covered (13.38%)

1.96 hits per line

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

0.0
/apps/web/src/components/BackButton.tsx
1
'use client'
2

3
import Button from '@codegouvfr/react-dsfr/Button'
4
import classNames from 'classnames'
5
import { useRouter } from 'next/navigation'
6
import { ReactNode } from 'react'
7

8
const BackButton = ({
×
9
  href,
10
  children = 'Retour',
×
11
  className,
12
}: {
13
  href?: string
14
  children?: ReactNode
15
  className?: string
16
}) => {
17
  const router = useRouter()
×
18

19
  const buttonClassName = classNames('fr-my-4v', className)
×
20

21
  if (href) {
×
22
    return (
×
23
      <Button
24
        priority="tertiary no outline"
25
        linkProps={{ href }}
26
        className={buttonClassName}
27
        iconId="fr-icon-arrow-left-line"
28
      >
29
        {children}
30
      </Button>
31
    )
32
  }
33

34
  return (
×
35
    <Button
36
      priority="tertiary no outline"
UNCOV
37
      onClick={() => router.back()}
×
38
      className={buttonClassName}
39
      iconId="fr-icon-arrow-left-line"
40
    >
41
      {children}
42
    </Button>
43
  )
44
}
45

46
export default BackButton
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