Merge branch 'V2' into feature/v2/footer

This commit is contained in:
ConnorYoh 2025-08-29 13:57:26 +01:00 committed by GitHub
commit f2f97329c1
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 });