Feat: Bind event to the theme Switch #3221 (#4067)

### What problem does this PR solve?

Feat: Bind event to  the theme Switch #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-12-17 16:32:17 +08:00
committed by GitHub
parent 000cd6d615
commit e8b4e8b3d7
7 changed files with 73 additions and 98 deletions

View File

@ -17,5 +17,14 @@ export const useNavigatePage = () => {
navigate(Routes.Home);
}, [navigate]);
return { navigateToDatasetList, navigateToDataset, navigateToHome };
const navigateToProfile = useCallback(() => {
navigate(Routes.ProfileSetting);
}, [navigate]);
return {
navigateToDatasetList,
navigateToDataset,
navigateToHome,
navigateToProfile,
};
};