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

EcrituresNumeriques / stylo / 14090633575

26 Mar 2025 06:19PM UTC coverage: 31.811% (+0.01%) from 31.801%
14090633575

push

github

web-flow
chore: remplace feather par lucide (plus d'icônes) (#1374)

470 of 703 branches covered (66.86%)

Branch coverage included in aggregate %.

4 of 47 new or added lines in 46 files covered. (8.51%)

2 existing lines in 1 file now uncovered.

4483 of 14867 relevant lines covered (30.15%)

2.26 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'
×
2
import { Note, Spacer, Text } from '@geist-ui/core'
×
NEW
3
import { Slash } from 'lucide-react'
×
4
import { Trans, useTranslation } from 'react-i18next'
×
5

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

8
import Modal from '../Modal.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
        <>
×
27
          <Slash />
×
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 && (
×
39
        <>
×
40
          <Spacer h={1} />
×
41
          <Note label="Important" type="error">
×
42
            <Trans i18nKey="workspace.leaveModal.confirmDeletion">
×
43
              Lʼespace de travail sera <Text i>supprimé</Text> car vous êtes la
×
44
              dernière personne appartenant à cet espace.
45
            </Trans>
×
46
          </Note>
×
47
        </>
×
48
      )}
49
      <FormActions onSubmit={handleLeavingWorkspace} onCancel={() => close()} />
×
50
    </Modal>
×
51
  )
52
}
×
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