Merge branch 'V2' into fixErrorInV2

This commit is contained in:
ConnorYoh 2025-08-29 13:54:28 +01:00 committed by GitHub
commit b9068b1955
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -138,8 +138,12 @@ export function ToolWorkflowProvider({ children }: ToolWorkflowProviderProps) {
}, []);
const setReaderMode = useCallback((mode: boolean) => {
if (mode) {
actions.setWorkbench('viewer');
actions.setSelectedTool('read');
}
dispatch({ type: 'SET_READER_MODE', payload: mode });
}, []);
}, [actions]);
const setPreviewFile = useCallback((file: File | null) => {
dispatch({ type: 'SET_PREVIEW_FILE', payload: file });