Skip to content

Commit 34e481e

Browse files
committed
Merge branch 'hotfix/import-name-docs'
2 parents c5dab74 + bf2f50e commit 34e481e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ In its basic implementation `useModal` lets you manage multiple modals in page i
3838
To 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
4848
1. **Import** the `useModal` hook
4949

5050
```jsx
51-
import { useModal } from "react-use-modal";
51+
import { useModal } from "@dinneb/react-use-modal";
5252
```
5353

5454
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
218218
```tsx
219219
// Modal.tsx
220220

221-
import { ModalProps } from "react-use-modal";
221+
import { ModalProps } from "@dinneb/react-use-modal";
222222
import styles from "./Modal.module.css";
223223

224224
export 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";
253253
import styles from "./Modal.module.css";
254254

255255
export const ModalActions = ({

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)