Projekt

Obecné

Profil

« Předchozí | Další » 

Revize fa93df26

Přidáno uživatelem Dominik Poch před asi 2 roky(ů)

Icons

Zobrazit rozdíly:

webapp/components/modals/UserDocumentsModal.tsx
5 5
import { userController } from '../../controllers';
6 6
import { useUnauthRedirect } from '../../hooks';
7 7
import { LoggedUserContext } from '../../contexts/LoggedUserContext';
8
import {
9
    CheckCircleOutlined,
10
    ClockCircleOutlined,
11
    SyncOutlined,
12
} from '@ant-design/icons';
8
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
9
import { faArrowsRotate } from '@fortawesome/free-solid-svg-icons';
10

  
11
import { faCircleCheck, faClock } from '@fortawesome/free-regular-svg-icons';
12
import styles from '/styles/Icon.module.scss';
13 13

  
14 14
interface ModalProps {
15 15
    onCancel: () => void;
......
32 32
    const getStateTag = (state: EState) => {
33 33
        let color = 'green';
34 34
        let label = 'Hotovo';
35
        let icon = <CheckCircleOutlined />;
35
        let icon = <FontAwesomeIcon icon={faCircleCheck} className={styles.iconLeft} />;
36 36
        if (state === EState.New) {
37 37
            color = 'volcano';
38 38
            label = 'Nový';
39
            icon = <ClockCircleOutlined />;
39
            icon = <FontAwesomeIcon icon={faClock} className={styles.iconLeft} />;
40 40
        }
41 41
        if (state === EState.InProgress) {
42 42
            color = 'orange';
43 43
            label = 'Rozpracováno';
44
            icon = <SyncOutlined />;
44
            icon = <FontAwesomeIcon icon={faArrowsRotate} className={styles.iconLeft} />;
45 45
        }
46 46
        return (
47 47
            <Tag icon={icon} color={color} key={label}>

Také k dispozici: Unified diff