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:
@@ -6,7 +6,7 @@
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { forwardRef } from 'react';
|
||||
import { Box, styled } from '@mui/material';
|
||||
import { IReaderSettings } from '@/typings';
|
||||
|
||||
@@ -26,7 +26,7 @@ interface IProps {
|
||||
settings: IReaderSettings;
|
||||
}
|
||||
|
||||
const DoublePage = React.forwardRef((props: IProps, ref: any) => {
|
||||
const DoublePage = forwardRef((props: IProps, ref: any) => {
|
||||
const { image1src, image2src, index, settings } = props;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user