Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent arguments of panel-extra in panelLock #197

Open
Max-ChenFei opened this issue Feb 26, 2023 · 0 comments
Open

Inconsistent arguments of panel-extra in panelLock #197

Max-ChenFei opened this issue Feb 26, 2023 · 0 comments

Comments

@Max-ChenFei
Copy link

Hi, in the example there are two parameters (panelData, context) at line 77

panelLock: {
minWidth: 200,
panelExtra: (panelData, context) => (
<button className='btn'
onClick={() => context.dockMove(newTab(), panelData, 'middle')}>
add
</button>

but in the type definition, there is only one parameter (panelData)
panelExtra?: (panel: PanelData) => React.ReactElement;

I am confused about this example when using rc-dock in tsx.
Could you please tell me more?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant