Oprava FontAwesome, odstranění Babel
This commit is contained in:
@@ -7,13 +7,13 @@ import Login from './Login';
|
||||
import { Locations, ClientData, Pizza } from './Types';
|
||||
import { Alert, Button, Col, Form, Row, Table } from 'react-bootstrap';
|
||||
import Header from './components/Header';
|
||||
import { icon } from '@fortawesome/fontawesome-svg-core/import.macro'
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import PizzaOrderList from './components/PizzaOrderList';
|
||||
import SelectSearch from 'react-select-search';
|
||||
import 'react-select-search/style.css';
|
||||
import './App.css';
|
||||
import { SelectSearchOption } from 'react-select-search';
|
||||
import { faTrashCan } from '@fortawesome/free-regular-svg-icons';
|
||||
|
||||
|
||||
const EVENT_CONNECT = "connect"
|
||||
@@ -185,7 +185,7 @@ function App() {
|
||||
{data.choices[Number(key)].map((p: string, index: number) =>
|
||||
<li key={index}>{p} {p === auth.login && <FontAwesomeIcon onClick={() => {
|
||||
removeChoice(key);
|
||||
}} title='Odstranit' className='trash-icon' icon={icon({ name: 'trash-can', style: 'regular' })} />}</li>
|
||||
}} title='Odstranit' className='trash-icon' icon={faTrashCan} />}</li>
|
||||
)}
|
||||
</ul>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user