Skip to content

Commit

Permalink
Update columns.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
sadarunnisa-sf authored Dec 26, 2024
1 parent 0df1121 commit eb13ce9
Showing 1 changed file with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,22 @@ import { buildRouteRef, jobRunsRouteRef } from '../../../../plugin';
import { JenkinsRunStatus } from '../Status';
import { jenkinsExecutePermission } from '@backstage-community/plugin-jenkins-common';

const FailCount = ({ count }: { count: number }): JSX.Element | null => {
if (count !== 0) {
return <>{count} failed</>;
}
return null;
};
// @SonarIgnoreStart
// const FailCount = ({ count }: { count: number }): JSX.Element | null => {
// if (count !== 0) {
// return <>{count} failed</>;
// }
// return null;
// };

// const SkippedCount = ({ count }: { count: number }): JSX.Element | null => {
// if (count !== 0) {
// return <>{count} skipped</>;
// }
// return null;
// };

const SkippedCount = ({ count }: { count: number }): JSX.Element | null => {
if (count !== 0) {
return <>{count} skipped</>;
}
return null;
};

// @SonarIgnoreStart
// const FailSkippedWidget = ({
// skipped,
// failed,
Expand Down

0 comments on commit eb13ce9

Please sign in to comment.