locale added all case conversion

Signed-off-by: erdoganoksuz <erdoganoksuz95@gmail.com>
This commit is contained in:
erdoganoksuz
2021-03-12 15:06:01 +03:00
parent 37189b54ab
commit 9ca0e40094
31 changed files with 93 additions and 51 deletions
@@ -88,8 +88,8 @@ const StepView = ({ step }: { step: Step }) => {
</TableCell>
<TableCell>
<WorkflowRunStatus
status={step.status.toUpperCase()}
conclusion={step.conclusion?.toUpperCase()}
status={step.status.toLocaleUpperCase('en-US')}
conclusion={step.conclusion?.toLocaleUpperCase('en-US')}
/>
</TableCell>
</TableRow>
@@ -32,7 +32,7 @@ export const WorkflowRunStatus = ({
conclusion: string | undefined;
}) => {
if (status === undefined) return null;
switch (status.toLowerCase()) {
switch (status.toLocaleLowerCase('en-US')) {
case 'queued':
return (
<>
@@ -46,7 +46,7 @@ export const WorkflowRunStatus = ({
</>
);
case 'completed':
switch (conclusion?.toLowerCase()) {
switch (conclusion?.toLocaleLowerCase('en-US')) {
case 'skipped' || 'canceled':
return (
<>