fine-modal-react 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ export const ConfirmInviteModal = FineModal.define({
|
|
|
37
37
|
export const modals = [ConfirmInviteModal] as const
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
###
|
|
40
|
+
### TypeScript registration for typed `open` (required for typing)
|
|
41
41
|
|
|
42
42
|
```ts
|
|
43
43
|
import type { modals } from './modals'
|
|
@@ -96,7 +96,7 @@ export function App() {
|
|
|
96
96
|
Render the modal component where you need it; open it via its static API. This avoids a global host if you only need the modal in one subtree.
|
|
97
97
|
|
|
98
98
|
```tsx
|
|
99
|
-
import { ConfirmInviteModal } from './
|
|
99
|
+
import { ConfirmInviteModal } from './ConfirmInviteModal'
|
|
100
100
|
|
|
101
101
|
export function App() {
|
|
102
102
|
const handleInvite = async () => {
|