Updated to react 17

This commit is contained in:
Alejandro Celaya 2020-11-13 22:44:26 +01:00
parent 18bccab27a
commit 6c90d7072f
134 changed files with 2691 additions and 735 deletions
src/common

View file

@ -1,4 +1,4 @@
import React, { FC, useEffect } from 'react';
import { FC, useEffect } from 'react';
import { Route, Switch } from 'react-router-dom';
import { EventData, Swipeable } from 'react-swipeable';
import { faBars as burgerIcon } from '@fortawesome/free-solid-svg-icons';
@ -46,7 +46,7 @@ const MenuLayout = (
};
return (
<React.Fragment>
<>
<FontAwesomeIcon icon={burgerIcon} className={burgerClasses} onClick={toggleSidebar} />
<Swipeable
@ -73,7 +73,7 @@ const MenuLayout = (
</div>
</div>
</Swipeable>
</React.Fragment>
</>
);
}, ServerError);