File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 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
3838To install the package, you can use npm or yarn:
3939
4040``` bash
41- npm install react-use-modal
41+ npm install @dinneb/ react-use-modal
4242```
4343
4444## Usage
@@ -48,7 +48,7 @@ npm install react-use-modal
48481 . ** Import** the ` useModal ` hook
4949
5050``` jsx
51- import { useModal } from " react-use-modal" ;
51+ import { useModal } from " @dinneb/ react-use-modal" ;
5252```
5353
54542 . ** 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
218218` ` ` tsx
219219// Modal.tsx
220220
221- import { ModalProps } from " react-use-modal" ;
221+ import { ModalProps } from " @dinneb/ react-use-modal" ;
222222import styles from " ./Modal.module.css" ;
223223
224224export const Modal = ({
@@ -249,7 +249,7 @@ export const Modal = ({
249249` ` ` tsx
250250// ModalActions.tsx
251251
252- import { ModalProps } from " react-use-modal" ;
252+ import { ModalProps } from " @dinneb/ react-use-modal" ;
253253import styles from " ./Modal.module.css" ;
254254
255255export const ModalActions = ({
Original file line number Diff line number Diff line change 11{
22 "name" : " @dinneb/react-use-modal" ,
3- "version" : " 1.0.1 " ,
3+ "version" : " 1.0.2 " ,
44 "description" : " A custom hook that provides a flexible and reusable way to manage multiple modals in React applications." ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments