forked from openshift/console
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: refactor classes to apply shorter calls and remove redundant checks
- Loading branch information
Showing
10 changed files
with
51 additions
and
66 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
frontend/packages/rhoas-plugin/src/components/service-list/ServiceInstance.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
29 changes: 16 additions & 13 deletions
29
frontend/packages/rhoas-plugin/src/components/states/ServicesErrorState.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
import * as React from 'react'; | ||
import ErrorCircle from '@patternfly/react-icons/dist/js/icons/error-circle-o-icon'; | ||
import './ServicesErrorState.css'; | ||
import { ServicesEmptyState, ServicesEmptyStateProps } from './ServicesEmptyState'; | ||
import { ServicesEmptyState } from './ServicesEmptyState'; | ||
|
||
export const ServicesErrorState = ({ title, message, actionLabel }: ServicesEmptyStateProps) => { | ||
return ( | ||
<ServicesEmptyState | ||
title={title} | ||
message={message} | ||
actionLabel={actionLabel} | ||
icon={ErrorCircle} | ||
iconClass="rhoas-services-error-state-icon" | ||
/> | ||
); | ||
}; | ||
import './ServicesErrorState.scss'; | ||
|
||
export const ServicesErrorState = ({ | ||
title, | ||
message, | ||
actionLabel, | ||
}: React.ComponentProps<typeof ServicesEmptyState>) => ( | ||
<ServicesEmptyState | ||
title={title} | ||
message={message} | ||
actionLabel={actionLabel} | ||
icon={ErrorCircle} | ||
iconClass="rhoas-services-error-state-icon" | ||
/> | ||
); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters