Skip to content

Commit

Permalink
Components: Fix remaining warning in ColorPanelDropdown (WordPress#61933
Browse files Browse the repository at this point in the history
)


Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
  • Loading branch information
3 people authored and carstingaxion committed Jun 4, 2024
1 parent 2a0c460 commit cdd710c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,17 @@ function ColorPanelDropdown( {
</Tabs.TabList>

{ tabs.map( ( tab ) => {
const { key: tabKey, ...restTabProps } =
tab;
return (
<Tabs.TabPanel
key={ tab.key }
tabId={ tab.key }
key={ tabKey }
tabId={ tabKey }
focusable={ false }
>
<ColorPanelTab
{ ...tab }
key={ tabKey }
{ ...restTabProps }
colorGradientControlSettings={
colorGradientControlSettings
}
Expand Down

0 comments on commit cdd710c

Please sign in to comment.