feat: account page content

This commit is contained in:
Takeshi Kimata
2024-06-03 21:53:52 +09:00
parent 24fe7bebb3
commit e4db79047a
9 changed files with 151 additions and 40 deletions

View File

@@ -62,6 +62,10 @@ async function fetchMyRoles(jwt: string) {
}
function isProjectManager(projectRoles: ProjectRoleType[], projectId: number) {
if (!projectRoles) {
return false;
}
const found = projectRoles.find((role) => {
return role.projectId === projectId;
});
@@ -83,6 +87,10 @@ function isProjectManager(projectRoles: ProjectRoleType[], projectId: number) {
}
function isProjectDeveloper(projectRoles: ProjectRoleType[], projectId: number) {
if (!projectRoles) {
return false;
}
const found = projectRoles.find((role) => {
return role.projectId === projectId;
});