Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ContentProcessorWeb/src/Components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { useNavigate, useLocation } from "react-router-dom";
import { useHeaderHooks, Header } from "../../Hooks/useHeaderHooks.tsx";
import { Header } from "../../Hooks/useHeaderHooks.tsx";
import {
TabList,
Tab,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react'
import { JsonEditor, JsonEditorProps, githubDarkTheme } from 'json-edit-react'
import { JsonEditor } from 'json-edit-react'
import './JSONEditor.styles.scss'

import { useDispatch, useSelector, shallowEqual } from 'react-redux';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ const UploadFilesModal: React.FC<UploadFilesModalProps> = ({ open, onClose }) =>
setUploading(false);
setFileErrors({})
setUploadCompleted(false);
}
};
const isSchemaSelectedOptionEmpty = !store.schemaSelectedOption || Object.keys(store.schemaSelectedOption).length === 0;
const onCloseHandler = () => {
resetState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FixedSizeList as List } from "react-window";
import { DocumentQueueAdd20Regular, DocumentPdfRegular, ImageRegular } from "@fluentui/react-icons";
import { Tooltip } from "@fluentui/react-components";
import {
useScrollbarWidth, useFluent, TableBody, TableCell, TableRow, Table,
TableBody, TableCell, TableRow, Table,
TableHeader, TableHeaderCell, TableCellLayout, createTableColumn, useTableFeatures,
useTableSelection, useTableSort, TableColumnId,
TableRowId
Expand Down Expand Up @@ -79,8 +79,6 @@ const ProcessQueueGrid: React.FC<GridComponentProps> = () => {
}), shallowEqual
);

const { targetDocument } = useFluent();

const [sortState, setSortState] = useState<{
sortDirection: "ascending" | "descending";
sortColumn: TableColumnId | undefined;
Expand Down Expand Up @@ -166,9 +164,6 @@ const ProcessQueueGrid: React.FC<GridComponentProps> = () => {
getRows,
sort: { getSortDirection, toggleColumnSort, sort },
selection: {
allRowsSelected,
someRowsSelected,
toggleAllRows,
toggleRow,
isRowSelected,
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useCallback, useEffect, useState, useRef } from "react";
import React, { useEffect, useState, useRef } from "react";
import { Accordion, AccordionItem, AccordionHeader, AccordionPanel } from "@fluentui/react-components";
import { useSelector, shallowEqual } from 'react-redux';
import { RootState } from '../../../../store/index.ts';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import DocumentViewer from '../../Components/DocumentViewer/DocumentViewer.tsx'
import { useDispatch, useSelector, shallowEqual } from 'react-redux';
import { AppDispatch, RootState } from '../../store';
import { fetchContentFileData } from '../../store/slices/rightPanelSlice'
import { updatePanelCollapse } from "../../store/slices/defaultPageSlice.ts";
import { bundleIcon, ChevronDoubleLeft20Filled, ChevronDoubleLeft20Regular } from "@fluentui/react-icons";
import { Button } from "@fluentui/react-components";
const ChevronDoubleLeft = bundleIcon(ChevronDoubleLeft20Regular, ChevronDoubleLeft20Filled);
Expand Down
2 changes: 1 addition & 1 deletion src/ContentProcessorWeb/src/Pages/DefaultPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useDispatch, useSelector, shallowEqual } from 'react-redux';
import { AppDispatch, RootState } from '../../store/index.ts';
import { updatePanelCollapse } from "../../store/slices/defaultPageSlice.ts";

import { makeStyles, Button } from "@fluentui/react-components";
import { Button } from "@fluentui/react-components";

const Page: React.FC = () => {

Expand Down
2 changes: 1 addition & 1 deletion src/ContentProcessorWeb/src/Pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import React from "react";

const Page: React.FC = () => {
return (
Expand Down
1 change: 0 additions & 1 deletion src/ContentProcessorWeb/src/Services/httpUtility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ const fetchWithAuth = async <T>(
if (error?.status !== undefined) {
throw error;
}
const isNetworkError = error instanceof TypeError && error.message === 'Failed to fetch';
const isOffline = !navigator.onLine; //isNetworkError ||

const message = isOffline
Expand Down
3 changes: 0 additions & 3 deletions src/ContentProcessorWeb/src/msal-auth/AuthWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@

import React, { useEffect } from "react";
import { msalInstance } from "./msalInstance";
import { loginRequest } from "./msaConfig";
import { useMsal, useIsAuthenticated } from "@azure/msal-react";
import { InteractionStatus } from "@azure/msal-browser";

import useAuth from './useAuth';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createSlice, createAsyncThunk, PayloadAction } from '@reduxjs/toolkit';
import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';

import httpUtility, { handleApiThunk } from '../../Services/httpUtility';
import { toast } from "react-toastify";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createSlice, createAsyncThunk, PayloadAction } from '@reduxjs/toolkit';
import { createSlice } from '@reduxjs/toolkit';

interface defaultPageState {
isLeftPanelCollapse: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { createSlice, createAsyncThunk, PayloadAction } from '@reduxjs/toolkit';

import httpUtility from '../../Services/httpUtility';

import { toast } from "react-toastify";
interface T {
headers: any,
blobURL: string,
Expand Down
Loading