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:
regexowl 2025-05-19 13:52:20 +02:00 committed by Lucas Garfield
parent 3617c0260d
commit 1fc1f0cb8d
79 changed files with 833 additions and 1066 deletions

View file

@ -184,6 +184,7 @@ const RegionsSelect = ({ composeId, handleClose }: RegionsSelectPropTypes) => {
<TextInputGroupUtilities>
{selected.length > 0 && (
<Button
icon={<TimesIcon aria-hidden />}
variant="plain"
onClick={() => {
setInputValue('');
@ -191,9 +192,7 @@ const RegionsSelect = ({ composeId, handleClose }: RegionsSelectPropTypes) => {
setValidated(ValidatedOptions.error);
}}
aria-label="Clear input value"
>
<TimesIcon aria-hidden />
</Button>
/>
)}
</TextInputGroupUtilities>
</TextInputGroup>
@ -208,7 +207,7 @@ const RegionsSelect = ({ composeId, handleClose }: RegionsSelectPropTypes) => {
<FormGroup
label="Select region"
isRequired
labelIcon={
labelHelp={
<Popover
headerContent={<div>Sharing images to other regions</div>}
bodyContent={
@ -221,13 +220,12 @@ const RegionsSelect = ({ composeId, handleClose }: RegionsSelectPropTypes) => {
}
>
<Button
icon={<HelpIcon />}
variant="plain"
aria-label="About regions"
className="pf-v5-u-pl-sm header-button"
isInline
>
<HelpIcon />
</Button>
/>
</Popover>
}
>