plate
plate copied to clipboard
Bad ToolbarButton typing
Description
Hey @zbeyens thanks for you hard work.
The generated ToolbarButton has bad typing.
After toolbar generation, you will have a dustructured value
in the
https://github.com/udecode/plate/blob/main/templates/plate-playground-template/src/components/plate-ui/toolbar.tsx#L91
If your eslint rule no-unused-vars
is set to error
you will get an error.
If you delete this value then you will get the type string | number | string[]
here
https://github.com/udecode/plate/blob/main/templates/plate-playground-template/src/components/plate-ui/toolbar.tsx#L120
But, ToolbarToggleItem expects string
🤷♂️
Steps to Reproduce
Environment
- IDE
- CI
- terminal
Bounty
Click here to add a bounty via Algora.
Funding
- You can sponsor this specific effort via a Polar.sh pledge below
- We receive the pledge once the issue is completed & verified
Thanks for the report. PR's welcome!
Hello @zbeyens, I want to work on this issue please assign it to me. Thanks in advance.
@lalitkumawat1m In general, you don't need to worry about getting issues assigned to you before working on them. Unless there's a bounty, the chances of multiple people working on them at the same time are quite slim.