Skip to content

Commit

Permalink
Don't use key anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Aug 10, 2023
1 parent dcc4164 commit ad30797
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/storybook-addon-designs/src/register/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ export default function register(renderTarget: "panel" | "tab") {
match: ({ viewMode }) => viewMode === "design",
});
} else {
addons.addPanel(PanelName, {
addons.add(PanelName, {
type: types.PANEL,
title,
paramKey: ParameterName,
render({ active, key }) {
render({ active }) {
return (
<AddonPanel key={key} active={!!active}>
<AddonPanel active={!!active}>
<ErrorBoundary>
<Wrapper active={!!active} />
</ErrorBoundary>
Expand Down

0 comments on commit ad30797

Please sign in to comment.