Skip to content

Commit

Permalink
Merge pull request #137 from mokeyjay/main
Browse files Browse the repository at this point in the history
fix README
  • Loading branch information
supnate authored Dec 5, 2023
2 parents f347493 + d745d8c commit 527c821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ With NiceModal you can create a separate modal component easily. It's just the s
import { Modal } from 'antd';
import NiceModal, { useModal } from '@ebay/nice-modal-react';

export default NiceModal.create(({ name }) => {
export default NiceModal.create(({ name }: { name: string }) => {
// Use a hook to manage the modal state
const modal = useModal();
return (
Expand Down

0 comments on commit 527c821

Please sign in to comment.