mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00
Cleanup
This commit is contained in:
parent
2245f7817d
commit
87610e80e8
@ -1,5 +1,4 @@
|
|||||||
import React, { useCallback, useEffect } from "react";
|
import React, { useEffect } from "react";
|
||||||
import { useTranslation } from 'react-i18next';
|
|
||||||
import { useFileContext } from "../contexts/FileContext";
|
import { useFileContext } from "../contexts/FileContext";
|
||||||
import { FileSelectionProvider, useFileSelection } from "../contexts/FileSelectionContext";
|
import { FileSelectionProvider, useFileSelection } from "../contexts/FileSelectionContext";
|
||||||
import { ToolWorkflowProvider, useToolSelection } from "../contexts/ToolWorkflowContext";
|
import { ToolWorkflowProvider, useToolSelection } from "../contexts/ToolWorkflowContext";
|
||||||
@ -13,17 +12,11 @@ import FileManager from "../components/FileManager";
|
|||||||
|
|
||||||
|
|
||||||
function HomePageContent() {
|
function HomePageContent() {
|
||||||
const { t } = useTranslation();
|
|
||||||
const {
|
const {
|
||||||
sidebarState,
|
|
||||||
sidebarRefs,
|
sidebarRefs,
|
||||||
setSidebarsVisible,
|
|
||||||
setLeftPanelView,
|
|
||||||
setReaderMode
|
|
||||||
} = useSidebarContext();
|
} = useSidebarContext();
|
||||||
|
|
||||||
const { sidebarsVisible, leftPanelView, readerMode } = sidebarState;
|
const { quickAccessRef } = sidebarRefs;
|
||||||
const { quickAccessRef, toolPanelRef } = sidebarRefs;
|
|
||||||
|
|
||||||
const { setMaxFiles, setIsToolMode, setSelectedFiles } = useFileSelection();
|
const { setMaxFiles, setIsToolMode, setSelectedFiles } = useFileSelection();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user