From 22977b8705886a42d83ea3bbc1f7ef399a168617 Mon Sep 17 00:00:00 2001 From: github-automatic-chores Date: Wed, 1 Nov 2023 15:47:36 +0000 Subject: [PATCH] automatic chores: linting [skip-ci] This is a commit done by the GitHub action https://github.com/Puzzlepart/prosjektportalen365/blob/releases/1.9/.github/workflows/automatic_chores.yml. --- .../ProjectStatus/Commands/useToolbarItems.tsx | 6 +++++- .../src/components/ProjectStatus/Sections/Sections.tsx | 10 ++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/SharePointFramework/ProjectWebParts/src/components/ProjectStatus/Commands/useToolbarItems.tsx b/SharePointFramework/ProjectWebParts/src/components/ProjectStatus/Commands/useToolbarItems.tsx index 74e419a59..964e15f2b 100644 --- a/SharePointFramework/ProjectWebParts/src/components/ProjectStatus/Commands/useToolbarItems.tsx +++ b/SharePointFramework/ProjectWebParts/src/components/ProjectStatus/Commands/useToolbarItems.tsx @@ -95,7 +95,11 @@ export function useToolbarItems() { .setOnClick(() => { window.open(state.selectedReport?.snapshotUrl, '_self') }), - new ListMenuItem(state.selectedReport ? formatDate(state.selectedReport.created) : strings.NoReportsFoundMessage) + new ListMenuItem( + state.selectedReport + ? formatDate(state.selectedReport.created) + : strings.NoReportsFoundMessage + ) .setIcon('History') .setWidth('fit-content') .setStyle({ minWidth: '145px' }) diff --git a/SharePointFramework/ProjectWebParts/src/components/ProjectStatus/Sections/Sections.tsx b/SharePointFramework/ProjectWebParts/src/components/ProjectStatus/Sections/Sections.tsx index c3db998f5..3faa055b2 100644 --- a/SharePointFramework/ProjectWebParts/src/components/ProjectStatus/Sections/Sections.tsx +++ b/SharePointFramework/ProjectWebParts/src/components/ProjectStatus/Sections/Sections.tsx @@ -15,13 +15,15 @@ export const Sections: FC = () => { return (
- {!context.state.selectedReport - ? - : sections.map((sec, idx) => ( + {!context.state.selectedReport ? ( + + ) : ( + sections.map((sec, idx) => ( {SectionMap[sec.type] ?? null} - ))} + )) + )}
) }