Add plus icon to ajouter un champ button

This commit is contained in:
Paul Chavard 2019-04-03 16:38:08 +02:00 committed by Pierre de La Morinerie
parent a197459e4d
commit 2374877e98
3 changed files with 8 additions and 1 deletions

View file

@ -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" />
&nbsp;&nbsp;
{addChampLabel(state.isAnnotation)}
</button>
</div>

View file

@ -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" />
&nbsp;&nbsp;
{addChampLabel(state.isAnnotation)}
</button>
<button

View file

@ -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) {