Wizard: Move ouiaId from Select component to MenuToggle

This moves the `ouiaId` since it didn't get correctly assigned while in `Select`. It's readable under the `MenuToggle`.
This commit is contained in:
regexowl 2025-03-13 14:46:07 +01:00 committed by Lucas Garfield
parent 53625ed190
commit 52398547f8
4 changed files with 5 additions and 5 deletions

View file

@ -193,6 +193,7 @@ const MountpointPrefix = ({ partition }: MountpointPrefixPropTypes) => {
const toggle = (toggleRef: React.Ref<MenuToggleElement>) => (
<MenuToggle
ouiaId="mount-point"
ref={toggleRef}
onClick={onToggleClick}
isExpanded={isOpen}
@ -206,7 +207,6 @@ const MountpointPrefix = ({ partition }: MountpointPrefixPropTypes) => {
return (
<Select
ouiaId="mount-point"
isOpen={isOpen}
selected={prefix}
onSelect={onSelect}
@ -339,6 +339,7 @@ const SizeUnit = ({ partition }: SizeUnitPropTypes) => {
const toggle = (toggleRef: React.Ref<MenuToggleElement>) => (
<MenuToggle
ouiaId="unit"
ref={toggleRef}
onClick={onToggleClick}
isExpanded={isOpen}
@ -350,7 +351,6 @@ const SizeUnit = ({ partition }: SizeUnitPropTypes) => {
return (
<Select
ouiaId="unit"
isOpen={isOpen}
selected={partition.unit}
onSelect={onSelect}