From 653202d4b967432f6c8b422bdb96d8bad3fee2a8 Mon Sep 17 00:00:00 2001 From: Gabriel DUGNY Date: Fri, 13 Dec 2024 10:06:43 +0100 Subject: [PATCH] chorre: prettier --- .../components/BuildKiteBuildView/components/ActionOutput.tsx | 4 +++- .../components/BuildKiteBuildsTable/BuildKiteBuildsTable.tsx | 2 +- .../backstage-plugin-jira/src/hooks/useActivityStream.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/components/ActionOutput.tsx b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/components/ActionOutput.tsx index d1707f52b..5f02a0b92 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/components/ActionOutput.tsx +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/components/ActionOutput.tsx @@ -65,7 +65,9 @@ export const ActionOutput: FC<{ // eslint-disable-next-line no-nested-ternary const timeElapsed = job.finished_at ? Duration.fromMillis( - DateTime.fromISO(job.finished_at).diff(DateTime.fromISO(job.started_at)).toMillis() + DateTime.fromISO(job.finished_at) + .diff(DateTime.fromISO(job.started_at)) + .toMillis(), ).toHuman() : job.started_at ? 'In Progress' diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/BuildKiteBuildsTable.tsx b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/BuildKiteBuildsTable.tsx index 940e0263e..a042043cd 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/BuildKiteBuildsTable.tsx +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/BuildKiteBuildsTable.tsx @@ -30,7 +30,7 @@ import { BuildkiteStatus } from './components/BuildKiteRunStatus'; import { BuildkiteBuildInfo, TableProps } from '../types'; const getElapsedTime = (start: string) => { - return DateTime.fromISO(start).toRelative(); + return DateTime.fromISO(start).toRelative(); }; const generatedColumns = [ diff --git a/plugins/frontend/backstage-plugin-jira/src/hooks/useActivityStream.ts b/plugins/frontend/backstage-plugin-jira/src/hooks/useActivityStream.ts index 74974e919..e21f1f8c2 100644 --- a/plugins/frontend/backstage-plugin-jira/src/hooks/useActivityStream.ts +++ b/plugins/frontend/backstage-plugin-jira/src/hooks/useActivityStream.ts @@ -32,7 +32,7 @@ const getPropertyValue = ( entry: ActivityStreamEntry, property: ActivityStreamKeys, ): string => entry[property]?._text; -const getElapsedTime = (start: string) => DateTime.fromISO(start).toRelative();; +const getElapsedTime = (start: string) => DateTime.fromISO(start).toRelative(); const decodeHtml = (html: string) => { const txt = document.createElement('textarea'); txt.innerHTML = html;