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 3, 2023
1 parent f7ed118 commit 30db7dd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export const LatestProjects: FC<ILatestProjectsProps> = (props) => {
function renderLatestProjects(): JSX.Element[] | JSX.Element {
if (!loading && projects.length === 0) {
return (
<UserMessage
title={strings.NoProjectsFoundTitle}
text={strings.NoProjectsFoundMessage}
/>
<UserMessage title={strings.NoProjectsFoundTitle} text={strings.NoProjectsFoundMessage} />
)
}
const viewCount = viewAll ? projects.length : props.rowLimit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ export class PortfolioInsights extends Component<IPortfolioInsightsProps, IPortf
if (this.state.chartData.isEmpty()) {
return (
<div className={styles.inner}>
<UserMessage
title={strings.NoProjectsFoundTitle}
text={strings.NoProjectsFoundMessage}
/>
<UserMessage title={strings.NoProjectsFoundTitle} text={strings.NoProjectsFoundMessage} />
</div>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ export const ProjectList: FC<IProjectListProps> = (props) => {
return (
<FluentProvider theme={webLightTheme}>
<section className={styles.root}>
<UserMessage
title={strings.NoProjectsFoundTitle}
text={strings.NoProjectsFoundMessage}
/>
<UserMessage title={strings.NoProjectsFoundTitle} text={strings.NoProjectsFoundMessage} />
</section>
</FluentProvider>
)
Expand All @@ -81,11 +78,7 @@ export const ProjectList: FC<IProjectListProps> = (props) => {
if (state.error) {
return (
<section className={styles.root}>
<UserMessage
title={strings.ErrorFetchingProjectsTitle}
text={state.error}
intent='error'
/>
<UserMessage title={strings.ErrorFetchingProjectsTitle} text={state.error} intent='error' />
</section>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const useAddProjectDialog = () => {
}, [])

const availableProjects = context.state.availableProjects.filter(
({SiteId}) =>
({ SiteId }) =>
!context.state.childProjects.some((c) => c.SiteId === SiteId) &&
SiteId !== context.props.context.pageContext.site.id.toString()
)
Expand All @@ -29,7 +29,7 @@ export const useAddProjectDialog = () => {
* `<AddProjectDialog />` component.
*/
const onAddChildProjects = async () => {
const projects = availableProjects.filter(({SiteId}) =>
const projects = availableProjects.filter(({ SiteId }) =>
context.state.addProjectDialog?.selectedProjects.includes(SiteId)
)
await context.props.dataAdapter.addChildProjects(projects)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ export const ProjectProperties: FC<IProjectPropertiesProps> = (props) => {
}
default: {
if (isEmpty(properties)) {
return (
<UserMessage title={strings.NoPropertiesTitle} text={strings.NoPropertiesMessage} />
)
return <UserMessage title={strings.NoPropertiesTitle} text={strings.NoPropertiesMessage} />
}
return (
<div className={styles.root}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ export const ProjectTimeline: FC<IProjectTimelineProps> = (props) => {
</div>
</div>
) : state.error ? (
<UserMessage
title={strings.ErrorTitle}
text={state.error.message}
intent='warning'
/>
<UserMessage title={strings.ErrorTitle} text={state.error.message} intent='warning' />
) : (
<div>
{props.showTimeline && (
Expand Down

0 comments on commit 30db7dd

Please sign in to comment.