Revize fa93df26
Přidáno uživatelem Dominik Poch před asi 2 roky(ů)
webapp/pages/documents/annotator/index.tsx | ||
---|---|---|
14 | 14 |
getAnnotationStateString, |
15 | 15 |
getAnnotationStateColor, |
16 | 16 |
} from '../../../utils/strings'; |
17 |
import { |
|
18 |
CheckCircleOutlined, |
|
19 |
ClockCircleOutlined, |
|
20 |
SyncOutlined, |
|
21 |
} from '@ant-design/icons'; |
|
22 | 17 |
import { getColumnSearchProps, getLocaleProps } from '../../../utils/tableUtils'; |
18 |
import { faArrowsRotate } from '@fortawesome/free-solid-svg-icons'; |
|
19 |
|
|
20 |
import { faCircleCheck, faClock } from '@fortawesome/free-regular-svg-icons'; |
|
21 |
import styles from '/styles/Icon.module.scss'; |
|
23 | 22 |
|
24 | 23 |
function UserDocumentPage() { |
25 | 24 |
const redirecting = useUnauthRedirect('/login'); |
... | ... | |
59 | 58 |
render: (state: EState) => { |
60 | 59 |
const color = getAnnotationStateColor(state); |
61 | 60 |
const label = getAnnotationStateString(state); |
62 |
let icon = <CheckCircleOutlined />; |
|
61 |
let icon = ( |
|
62 |
<FontAwesomeIcon icon={faCircleCheck} className={styles.iconLeft} /> |
|
63 |
); |
|
63 | 64 |
if (state === 'NEW') { |
64 |
icon = <ClockCircleOutlined />;
|
|
65 |
icon = <FontAwesomeIcon icon={faClock} className={styles.iconLeft} />;
|
|
65 | 66 |
} |
66 | 67 |
if (state === 'IN_PROGRESS') { |
67 |
icon = <SyncOutlined />; |
|
68 |
icon = ( |
|
69 |
<FontAwesomeIcon |
|
70 |
icon={faArrowsRotate} |
|
71 |
className={styles.iconLeft} |
|
72 |
/> |
|
73 |
); |
|
68 | 74 |
} |
69 | 75 |
|
70 | 76 |
return ( |
Také k dispozici: Unified diff
Icons