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

EcrituresNumeriques / stylo / 15421390038

03 Jun 2025 03:23PM UTC coverage: 38.116% (+0.4%) from 37.711%
15421390038

push

github

web-flow
feat: EntĂȘte responsive (#1531)

Co-authored-by: Thomas Parisot <thom4parisot@users.noreply.github.com>

555 of 781 branches covered (71.06%)

Branch coverage included in aggregate %.

28 of 398 new or added lines in 18 files covered. (7.04%)

48 existing lines in 9 files now uncovered.

5382 of 14795 relevant lines covered (36.38%)

2.57 hits per line

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

0.0
/front/src/components/header/UserMenu.jsx
NEW
1
import React from 'react'
×
2
import { useTranslation } from 'react-i18next'
×
NEW
3
import { Link, NavLink } from 'react-router'
×
NEW
4
import { LogOut, User } from 'lucide-react'
×
NEW
5
import { useActiveUser } from '../../hooks/user.js'
×
6

NEW
7
import styles from '../header.module.scss'
×
8

9
export default function UserMenu() {
×
10
  const { t } = useTranslation()
×
NEW
11
  const activeUser = useActiveUser()
×
12

NEW
13
  if (!activeUser?._id) {
×
NEW
14
    return (
×
NEW
15
      <nav className={styles.userMenu} aria-label={t('header.userMenu.title')}>
×
NEW
16
        <NavLink to="/login">
×
NEW
17
          {t('credentials.login.confirmButton')}
×
NEW
18
        </NavLink>
×
19

NEW
20
        <NavLink to="/register" className="hidden-below-tablet">
×
NEW
21
          {t('credentials.login.registerLink')}
×
NEW
22
        </NavLink>
×
NEW
23
      </nav>
×
24
    )
NEW
25
  }
×
26

27
  return (
×
NEW
28
    <nav className={styles.userMenu} aria-label={t('header.userMenu.title')}>
×
NEW
29
      <NavLink to="/credentials" aria-label={t('header.userMenu.profile')} aria-description={t('header.userMenu.profile.description')}>
×
NEW
30
        <User aria-hidden className="icon hidden-below-tablet" />
×
31

NEW
32
        <span className="hidden-below-tablet">{activeUser.displayName}</span>
×
NEW
33
        <span className="hidden-above-tablet">{t('header.userMenu.shortLabel')}</span>
×
NEW
34
      </NavLink>
×
35

NEW
36
      <Link to="/logout">
×
NEW
37
        <LogOut className="icon" aria-hidden />
×
NEW
38
        <span className="sr-only">{t('credentials.logout.confirmButton')}</span>
×
NEW
39
      </Link>
×
NEW
40
    </nav>
×
41
  )
42
}
×
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