Skip to content

Commit

Permalink
Fix patternfly 6 isue
Browse files Browse the repository at this point in the history
Signed-off-by: lucferbux <[email protected]>
  • Loading branch information
lucferbux committed Nov 8, 2024
1 parent af44421 commit cff98f6
Showing 1 changed file with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,17 @@ const RegisteredModelsTableToolbar: React.FC<RegisteredModelsTableToolbarProps>
ref={toggleRef}
onClick={() => setIsRegisterNewVersionOpen(!isRegisterNewVersionOpen)}
isExpanded={isRegisterNewVersionOpen}
splitButtonOptions={{
variant: 'action',
items: [
<MenuToggleAction
id="register-model-button"
key="register-model-button"
data-testid="register-model-button"
aria-label="Register model"
onClick={() => navigate(registerModelUrl(preferredModelRegistry?.name))}
>
Register model
</MenuToggleAction>,
],
}}
splitButtonItems={[
<MenuToggleAction
id="register-model-button"
key="register-model-button"
data-testid="register-model-button"
aria-label="Register model"
onClick={() => navigate(registerModelUrl(preferredModelRegistry?.name))}
>
Register model
</MenuToggleAction>,
]}
aria-label="Register model toggle"
data-testid="register-model-split-button"
/>
Expand Down

0 comments on commit cff98f6

Please sign in to comment.