Chore: corrects syntax for type only imports (#1716)

* chore: removes replaces 'import type xxx from 'xxx'' with 'import { type xxx} from 'xxx'''

* chore: remove typed imports

* chore: remove typed imports

* chore: cleanup

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
Ronit Panda
2023-09-26 15:17:35 +05:30
committed by GitHub
parent 26de4bab35
commit 8639cb921e
194 changed files with 252 additions and 254 deletions

View File

@ -1,6 +1,6 @@
import { useCallback, useState } from 'react';
import styled from '@emotion/styled';
import type XLSX from 'xlsx-ugnis';
import { WorkBook } from 'xlsx-ugnis';
import { Modal } from '@/ui/modal/components/Modal';
@ -11,14 +11,14 @@ const StyledContent = styled(Modal.Content)`
`;
type UploadProps = {
onContinue: (data: XLSX.WorkBook, file: File) => Promise<void>;
onContinue: (data: WorkBook, file: File) => Promise<void>;
};
export const UploadStep = ({ onContinue }: UploadProps) => {
const [isLoading, setIsLoading] = useState(false);
const handleOnContinue = useCallback(
async (data: XLSX.WorkBook, file: File) => {
async (data: WorkBook, file: File) => {
setIsLoading(true);
await onContinue(data, file);
setIsLoading(false);