Skip to content

Commit

Permalink
fix color type share users and organization
Browse files Browse the repository at this point in the history
  • Loading branch information
sanglevinh committed Aug 3, 2023
1 parent 405fe68 commit cbc0499
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Database/DatabaseExperiments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ const DatabaseExperiments = ({ user, cellPath }: DatabaseProps) => {
sx={{ cursor: 'pointer' }}
onClick={() => handleOpenShare(row.experiment_id, value, row.id)}
>
<GroupsIcon sx={{ color: `${value === SHARE.NOSHARE ? "bredlack" : value === SHARE.ORGANIZATION ? "blue" : "red" }`}}/>
<GroupsIcon sx={{ color: `${value === SHARE.NOSHARE ? "black" : value === SHARE.ORGANIZATION ? "red" : "blue" }`}}/>
</Box>
)
}
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/pages/AccountManager/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ const AccountManager = () => {
let role
switch (params.value) {
case ROLE.ADMIN:
role = "admin";
role = "Admin";
break;
case ROLE.MANAGER:
role = "manager";
role = "Manager";
break;
case ROLE.OPERATOR:
role = "operator";
role = "Operator";
break;
case ROLE.GUEST_OPERATOR:
role = "guest operator";
role = "Guest Operator";
break;
}
return (
Expand Down

0 comments on commit cbc0499

Please sign in to comment.