Fix/vite tsconfig setup (#404)

* Use "create-vite"s tsconfig files setup

The previous tsconfig file caused issues with vite throwing "missing identifiers of modules" errors

* Remove unused React imports

Starting with React 17 the nex JSX transform is being used
This commit is contained in:
schroda
2023-08-14 21:43:06 +02:00
committed by GitHub
parent 637118ad7a
commit 48fe8d23e9
42 changed files with 81 additions and 65 deletions

View File

@@ -6,7 +6,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import React, { useContext, useEffect } from 'react';
import { Fragment, useContext, useEffect } from 'react';
import { IconButton } from '@mui/material';
import TravelExploreIcon from '@mui/icons-material/TravelExplore';
import { useNavigate } from 'react-router-dom';
@@ -103,7 +103,7 @@ export default function Sources() {
.map(
([lang, list]) =>
shownLangs.indexOf(lang) !== -1 && (
<React.Fragment key={lang}>
<Fragment key={lang}>
<h1 key={lang} style={{ marginLeft: 25 }}>
{translateExtensionLanguage(lang)}
</h1>
@@ -112,7 +112,7 @@ export default function Sources() {
.map((source) => (
<SourceCard key={source.id} source={source} />
))}
</React.Fragment>
</Fragment>
),
)}
</>