Skip to content

Commit

Permalink
Merge branch 'hotfix/import-name-docs'
Browse files Browse the repository at this point in the history
  • Loading branch information
dennib committed Mar 19, 2023
2 parents c5dab74 + bf2f50e commit 34e481e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ In its basic implementation `useModal` lets you manage multiple modals in page i
To install the package, you can use npm or yarn:

```bash
npm install react-use-modal
npm install @dinneb/react-use-modal
```

## Usage
Expand All @@ -48,7 +48,7 @@ npm install react-use-modal
1. **Import** the `useModal` hook

```jsx
import { useModal } from "react-use-modal";
import { useModal } from "@dinneb/react-use-modal";
```

2. **Call the hook** to get modal configuration and relative helper functions: `modalConfig` and `setModalConfig`.
Expand Down Expand Up @@ -218,7 +218,7 @@ At the moment we **don't provide** the `Modal component`. The hook provides conf
```tsx
// Modal.tsx

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

export const Modal = ({
Expand Down Expand Up @@ -249,7 +249,7 @@ export const Modal = ({
```tsx
// ModalActions.tsx

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

export const ModalActions = ({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dinneb/react-use-modal",
"version": "1.0.1",
"version": "1.0.2",
"description": "A custom hook that provides a flexible and reusable way to manage multiple modals in React applications.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 34e481e

Please sign in to comment.