locale added all case conversion
Signed-off-by: erdoganoksuz <erdoganoksuz95@gmail.com>
This commit is contained in:
@@ -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 (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user