File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ In its basic implementation `useModal` lets you manage multiple modals in page i
38
38
To install the package, you can use npm or yarn:
39
39
40
40
``` bash
41
- npm install react-use-modal
41
+ npm install @dinneb/ react-use-modal
42
42
```
43
43
44
44
## Usage
@@ -48,7 +48,7 @@ npm install react-use-modal
48
48
1 . ** Import** the ` useModal ` hook
49
49
50
50
``` jsx
51
- import { useModal } from " react-use-modal" ;
51
+ import { useModal } from " @dinneb/ react-use-modal" ;
52
52
```
53
53
54
54
2 . ** Call the hook** to get modal configuration and relative helper functions: ` modalConfig ` and ` setModalConfig ` .
@@ -218,7 +218,7 @@ At the moment we **don't provide** the `Modal component`. The hook provides conf
218
218
` ` ` tsx
219
219
// Modal.tsx
220
220
221
- import { ModalProps } from " react-use-modal" ;
221
+ import { ModalProps } from " @dinneb/ react-use-modal" ;
222
222
import styles from " ./Modal.module.css" ;
223
223
224
224
export const Modal = ({
@@ -249,7 +249,7 @@ export const Modal = ({
249
249
` ` ` tsx
250
250
// ModalActions.tsx
251
251
252
- import { ModalProps } from " react-use-modal" ;
252
+ import { ModalProps } from " @dinneb/ react-use-modal" ;
253
253
import styles from " ./Modal.module.css" ;
254
254
255
255
export const ModalActions = ({
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @dinneb/react-use-modal" ,
3
- "version" : " 1.0.1 " ,
3
+ "version" : " 1.0.2 " ,
4
4
"description" : " A custom hook that provides a flexible and reusable way to manage multiple modals in React applications." ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments