diff --git a/pkgs/frontend/app/components/BasicRole.tsx b/pkgs/frontend/app/components/BasicRole.tsx index dcd51ce..c77ea58 100644 --- a/pkgs/frontend/app/components/BasicRole.tsx +++ b/pkgs/frontend/app/components/BasicRole.tsx @@ -44,18 +44,19 @@ export const RoleActions: FC = (params) => { const navigate = useNavigate(); - const navigateToDetail = () => navigate(`/${treeId}/${hatId}/${address}`); - - const navigateToAssistCredit = () => - navigate(`/${treeId}/${hatId}/${address}/assistcredit/send`); - return ( {detail?.data.name} - See Detail - + navigate(`/${treeId}/${hatId}/${address}`)}> + See Detail + + + navigate(`/${treeId}/${hatId}/${address}/assistcredit/send`) + } + > Transfer Assist Credit diff --git a/pkgs/frontend/app/routes/$treeId.tsx b/pkgs/frontend/app/routes/$treeId.tsx index 226e38e..928ea32 100644 --- a/pkgs/frontend/app/routes/$treeId.tsx +++ b/pkgs/frontend/app/routes/$treeId.tsx @@ -24,7 +24,6 @@ const WorkspaceTop: FC = () => { const topHatId = tree?.hats?.find((h) => h.levelAtLocalTree === 0)?.id; const navigate = useNavigate(); - const navigateToNewRole = () => navigate(`/workspaces/${topHatId}/roles/new`); return ( <> @@ -54,17 +53,18 @@ const WorkspaceTop: FC = () => { {tree?.hats ?.filter((h) => Number(h.levelAtLocalTree) >= 2) .map((h) => ( - - - + navigate(`/${treeId}/${h.id}`)}> + + + + ))} - + navigate(`/workspaces/${topHatId}/roles/new`)} + >