Feat: Bind data to datasets page #3221 (#4938)

### 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:
balibabu
2025-02-14 09:38:48 +08:00
committed by GitHub
parent 17fa2e9e8e
commit c1583a3e1d
10 changed files with 571 additions and 256 deletions

View File

@ -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);