Start adding PersonTitlePage

This commit is contained in:
Prayag Prajapati committed 2023-09-13 23:36:11 +05:30
1 parent fb27c3071f
commit d7a6fc2dd0
6 files changed
+739 -101

No files matched your search

+2
View File
@@ -71,6 +71,8 @@ export const Card = ({
const defaultOnClick = () => {
if (availableSpecialRoutes.includes(item.Type)) {
navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`);
} else if (!!item.Role) {
navigate(`/person/${item.Id}`);
} else {
navigate(`/item/${item.Id}`);
}