Skip to content

Commit

Permalink
Fix small typos in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadxali authored Dec 31, 2024
1 parent 99118c3 commit 4ab5ad8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function handleClick() {

## API

**The `usePromiseModal()` hook` returns the following values**:
**The `usePromiseModal()` hook returns the following values**:

```tsx
const { invoke, modal, isDisplayed } = usePromiseModal(/* ... */);
Expand Down Expand Up @@ -85,7 +85,7 @@ function MyApp() {

async function handleDeleteAccount() {
if (await confirmation.invoke()) {
console.log('Conirmed');
console.log('Confirmed');
} else {
console.log('Cancelled');
}
Expand Down Expand Up @@ -200,7 +200,7 @@ const failureFeedback = usePromiseModal<undefined, { status: Status, failures: O
),
);

// Invocation of the modal now requrires these additional properties:
// Invocation of the modal now requires these additional properties:
async function handleFlakyOperation() {
const { status, failures } = await api.flakyOperation();
if (status !== 'success') {
Expand Down

0 comments on commit 4ab5ad8

Please sign in to comment.