mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Bind data to datasets page #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -9,9 +9,12 @@ export const useNavigatePage = () => {
|
||||
navigate(Routes.Datasets);
|
||||
}, [navigate]);
|
||||
|
||||
const navigateToDataset = useCallback(() => {
|
||||
navigate(Routes.Dataset);
|
||||
}, [navigate]);
|
||||
const navigateToDataset = useCallback(
|
||||
(id: string) => () => {
|
||||
navigate(`${Routes.Dataset}/${id}`);
|
||||
},
|
||||
[navigate],
|
||||
);
|
||||
|
||||
const navigateToHome = useCallback(() => {
|
||||
navigate(Routes.Home);
|
||||
|
||||
Reference in New Issue
Block a user