mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
Merge pull request #8633 from jung-han/7005-addon-notes-key-warning
Addon-notes: Add key to render function
This commit is contained in:
commit
17e422e23c
@ -13,7 +13,7 @@ export default function register(type: types) {
|
||||
title: 'Notes',
|
||||
route: ({ storyId }) => `/info/${storyId}`, // todo add type
|
||||
match: ({ viewMode }) => viewMode === 'info', // todo add type
|
||||
render: ({ active }) => <Panel api={api} active={active} />,
|
||||
render: ({ active, key }) => <Panel api={api} active={active} key={key} />,
|
||||
paramKey: PARAM_KEY,
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user