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 patil-vipul committed Jun 17, 2024
1 parent 90abc5b commit 5f38a8c
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 5f38a8c

Please sign in to comment.