Skip to content

Commit

Permalink
fix code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
jadmsaadaot committed Jul 14, 2023
1 parent 1facb68 commit 39bd661
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { createContext, useState } from 'react';
import React, { createContext } from 'react';

export interface FileUploadContextState {
handleAddFile: (_files: File[]) => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { ActionContext } from '../../ActionContext';
import { DocumentItem } from 'models/document';
import { WidgetDrawerContext } from '../WidgetDrawerContext';
import { Widget, WidgetType } from 'models/widget';
import { fetchDocuments, postDocument } from 'services/widgetService/DocumentService';
import { saveDocument } from 'services/objectStorageService';
import { fetchDocuments } from 'services/widgetService/DocumentService';

export interface DocumentsContextProps {
documentToEdit: DocumentItem | null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext, useState, useEffect } from 'react';
import React, { useContext, useState } from 'react';
import Box from '@mui/material/Box';
import Drawer from '@mui/material/Drawer';
import Divider from '@mui/material/Divider';
Expand Down

0 comments on commit 39bd661

Please sign in to comment.