Add plus icon to ajouter un champ button
This commit is contained in:
parent
a197459e4d
commit
2374877e98
3 changed files with 8 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
import React, { useReducer, useRef } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
|
||||
import { SortableContainer, addChampLabel } from '../utils';
|
||||
import TypeDeChamp from './TypeDeChamp';
|
||||
|
@ -46,6 +47,8 @@ function TypeDeChampRepetitionOptions({
|
|||
})
|
||||
}
|
||||
>
|
||||
<FontAwesomeIcon icon="plus" size="sm" />
|
||||
|
||||
{addChampLabel(state.isAnnotation)}
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import React, { useReducer, useRef } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
|
||||
import { SortableContainer, addChampLabel } from '../utils';
|
||||
import TypeDeChamp from './TypeDeChamp';
|
||||
|
@ -51,6 +52,8 @@ function TypeDeChamps({ state: rootState, typeDeChamps }) {
|
|||
})
|
||||
}
|
||||
>
|
||||
<FontAwesomeIcon icon="plus" size="sm" />
|
||||
|
||||
{addChampLabel(state.isAnnotation)}
|
||||
</button>
|
||||
<button
|
||||
|
|
|
@ -5,6 +5,7 @@ import {
|
|||
faArrowDown,
|
||||
faArrowsAltV,
|
||||
faArrowUp,
|
||||
faPlus,
|
||||
faTrash
|
||||
} from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
|
@ -12,7 +13,7 @@ import Flash from './Flash';
|
|||
import OperationsQueue from './OperationsQueue';
|
||||
import TypeDeChamps from './components/TypeDeChamps';
|
||||
|
||||
library.add(faArrowDown, faArrowsAltV, faArrowUp, faTrash);
|
||||
library.add(faArrowDown, faArrowsAltV, faArrowUp, faPlus, faTrash);
|
||||
|
||||
class TypesDeChampEditor extends Component {
|
||||
constructor(props) {
|
||||
|
|
Loading…
Reference in a new issue