Skip to content

Commit

Permalink
automatic chores: linting [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-automatic-chores committed Nov 1, 2023
1 parent d39019f commit 22977b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ export const Sections: FC = () => {

return (
<div className={styles.root} id='pp-statussection'>
{!context.state.selectedReport
? <UserMessage text={strings.NoStatusReportsMessage} />
: sections.map((sec, idx) => (
{!context.state.selectedReport ? (
<UserMessage text={strings.NoStatusReportsMessage} />
) : (
sections.map((sec, idx) => (
<SectionContext.Provider key={idx} value={createContextValue(sec)}>
{SectionMap[sec.type] ?? null}
</SectionContext.Provider>
))}
))
)}
</div>
)
}

0 comments on commit 22977b8

Please sign in to comment.