src: Run codemods and lint
Run `npx @patternfly/pf-codemods@latest src --v6 --fix` and lint autofix to get the bulk of the changes in.
This commit is contained in:
parent
3617c0260d
commit
1fc1f0cb8d
79 changed files with 833 additions and 1066 deletions
|
|
@ -5,8 +5,6 @@ import {
|
|||
EmptyState,
|
||||
EmptyStateActions,
|
||||
EmptyStateFooter,
|
||||
EmptyStateHeader,
|
||||
EmptyStateIcon,
|
||||
EmptyStateVariant,
|
||||
} from '@patternfly/react-core';
|
||||
import { CubesIcon } from '@patternfly/react-icons';
|
||||
|
|
@ -14,12 +12,12 @@ import cockpit from 'cockpit';
|
|||
|
||||
export const NotReady = ({ enabled }: { enabled: boolean }) => {
|
||||
return (
|
||||
<EmptyState variant={EmptyStateVariant.xl}>
|
||||
<EmptyStateHeader
|
||||
titleText={`OSBuild Composer is not ${enabled ? 'started' : 'enabled'}`}
|
||||
headingLevel="h4"
|
||||
icon={<EmptyStateIcon icon={CubesIcon} />}
|
||||
/>
|
||||
<EmptyState
|
||||
headingLevel="h4"
|
||||
icon={CubesIcon}
|
||||
titleText={`OSBuild Composer is not ${enabled ? 'started' : 'enabled'}`}
|
||||
variant={EmptyStateVariant.xl}
|
||||
>
|
||||
<EmptyStateFooter>
|
||||
<EmptyStateActions>
|
||||
<Button
|
||||
|
|
|
|||
|
|
@ -3,20 +3,18 @@ import React from 'react';
|
|||
import {
|
||||
EmptyState,
|
||||
EmptyStateBody,
|
||||
EmptyStateHeader,
|
||||
EmptyStateIcon,
|
||||
EmptyStateVariant,
|
||||
} from '@patternfly/react-core';
|
||||
import { LockIcon } from '@patternfly/react-icons';
|
||||
|
||||
export const RequireAdmin = () => {
|
||||
return (
|
||||
<EmptyState variant={EmptyStateVariant.xl}>
|
||||
<EmptyStateHeader
|
||||
titleText="Access is limited."
|
||||
headingLevel="h4"
|
||||
icon={<EmptyStateIcon icon={LockIcon} color="#f4c145" />}
|
||||
/>
|
||||
<EmptyState
|
||||
headingLevel="h4"
|
||||
icon={LockIcon}
|
||||
titleText="Access is limited."
|
||||
variant={EmptyStateVariant.xl}
|
||||
>
|
||||
<EmptyStateBody>
|
||||
Administrative access is required to run the Image Builder frontend.
|
||||
Click on the icon in the toolbar to grant administrative access.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue