Skip to content

Commit

Permalink
Merge pull request #69 from SMUGitGeeks/fix-scheduedTag
Browse files Browse the repository at this point in the history
Fix schedule tag in Role Listing Manage
  • Loading branch information
simyanyi authored Nov 8, 2023
2 parents bbe7ca4 + 3d9458c commit 794c22c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/src/components/pages/RoleListingManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,12 @@ const RoleListingManager = ({
<Space size={10}>
{item.role_name}
<Space size={3} wrap>
<Tag color={item.rl_status === "Open" ? "green" : "red"} data-testid="status">{item.rl_status}</Tag>
{ new Date(item.rl_open).getTime() > today.getTime() ?
<Tag color="gold" data-testid="status">Scheduled</Tag>
:
<Tag color={item.rl_status === "Open" ? "green" : "red"} data-testid="status">{item.rl_status}</Tag>
}

{ item.role_status !== "active" ?
<Tag data-testid="status">Inactive</Tag> :
<></>
Expand Down

0 comments on commit 794c22c

Please sign in to comment.