Oprava FontAwesome, odstranění Babel

This commit is contained in:
2023-06-04 20:20:07 +02:00
parent bae7966e5a
commit 5fd4edee94
6 changed files with 1252 additions and 1158 deletions

View File

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