anysphere / priompt

Prompt design using JSX.
MIT License
849 stars 51 forks source link

Fix priompt-preview dialog component #2

Closed unknown closed 8 months ago

unknown commented 8 months ago

@radix-ui/react-dialog on version v1.0.5 removes the className prop from the Portal component, causing a Typescript error. This can be fixed by either pinning the dependency to =1.0.4 or by updating to 1.0.5 and fixing the error.

This PR fixes this by bumping @radix-ui/react-dialog to 1.0.5 and removing the unneeded props from the dialog component.

NOTE: I suspect that priompt is a part of a larger monorepo, so bumping @radix-ui/react-dialog may require more changes outside the scope of this repo.

arvid220u commented 8 months ago

Thank you! We appreciate contributions :)