Skip to content

Commit

Permalink
change WAITING text colour to be black
Browse files Browse the repository at this point in the history
  • Loading branch information
rerpha committed Dec 4, 2024
1 parent de0ac0f commit 8ed9b6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/getRunstateColours.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
} from "@/app/components/getRunstateColours";

test("getForegroundColor when runstate requires white text returns white text", () => {
const runstate = "WAITING";
const runstate = "RESUMING";
const result = getForegroundColour(runstate);
expect(result).toBe("text-white");
});
Expand Down
1 change: 1 addition & 0 deletions app/components/getRunstateColours.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function getForegroundColour(status: string): string {
"PROCESSING",
"VETOING",
"SETUP",
"WAITING",
];
return blackTextRunstates.includes(status) ? "text-black" : "text-white";
}
Expand Down

0 comments on commit 8ed9b6f

Please sign in to comment.