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

EcrituresNumeriques / stylo / 14488232472

16 Apr 2025 08:28AM UTC coverage: 33.412% (+0.03%) from 33.378%
14488232472

push

github

web-flow
chore: remplace quelques usages de Geist (#1424)

515 of 775 branches covered (66.45%)

Branch coverage included in aggregate %.

0 of 27 new or added lines in 6 files covered. (0.0%)

2 existing lines in 2 files now uncovered.

5020 of 15791 relevant lines covered (31.79%)

2.3 hits per line

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

0.0
/front/src/components/workspace/LeaveWorkspaceModal.jsx
1
import React, { useCallback } from 'react'
×
NEW
2
import { CircleOff } from 'lucide-react'
×
3
import { Trans, useTranslation } from 'react-i18next'
×
4

5
import { useWorkspaceActions } from '../../hooks/workspace.js'
×
6

7
import Modal from '../Modal.jsx'
×
NEW
8
import Alert from '../molecules/Alert.jsx'
×
9
import FormActions from '../molecules/FormActions.jsx'
×
10
import WorkspaceLabel from './WorkspaceLabel.jsx'
×
11

12
import styles from './workspaceItem.module.scss'
×
13

14
export default function LeaveWorkspaceModal({ close, bindings, workspace }) {
×
15
  const { leaveWorkspace } = useWorkspaceActions()
×
16
  const handleLeavingWorkspace = useCallback(async () => {
×
17
    await leaveWorkspace(workspace._id)
×
18
    close()
×
19
  }, [workspace._id])
×
20

21
  const { t } = useTranslation()
×
22
  return (
×
23
    <Modal
×
24
      {...bindings}
×
25
      title={
×
26
        <>
×
NEW
27
          <CircleOff />
×
28
          {t('workspace.leaveModal.title')}
×
29
        </>
×
30
      }
31
    >
32
      <WorkspaceLabel
×
33
        className={styles.workspaceLabel}
×
34
        color={workspace.color}
×
35
        name={workspace.name}
×
36
      />
×
37
      {t('workspace.leaveModal.confirm')}
×
38
      {workspace.stats.membersCount === 1 && (
×
NEW
39
        <Alert
×
NEW
40
          className={styles.message}
×
NEW
41
          type={'warning'}
×
NEW
42
          message={
×
43
            <Trans i18nKey="workspace.leaveModal.confirmDeletion">
×
NEW
44
              Lʼespace de travail sera <i>supprimé</i> car vous êtes la dernière
×
45
              personne appartenant à cet espace.
46
            </Trans>
×
47
          }
NEW
48
        />
×
49
      )}
50
      <FormActions onSubmit={handleLeavingWorkspace} onCancel={() => close()} />
×
51
    </Modal>
×
52
  )
53
}
×
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