Skip to content

Commit 468c303

Browse files
authored
Merge pull request #84 from ruisaraiva19/dev
2 parents 7af1a17 + e448a6e commit 468c303

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

site/pages/docs/toast.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ toast('Hello World', {
4242

4343
### Blank
4444

45-
```
45+
```js
4646
toast('Hello World');
4747
```
4848

@@ -152,15 +152,15 @@ You can dismiss all toasts at once, by leaving out the `toastId`.
152152

153153
#### Dismiss all toasts at one
154154

155-
```
155+
```js
156156
toast.dismiss()
157157
```
158158

159159
To remove toasts instantly without any animations, use `toast.remove`.
160160

161161
#### Remove toasts instanstly
162162

163-
```
163+
```js
164164
toast.remove(toastId)
165165

166166
// or

site/pages/docs/use-toaster-store.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This hook gives you access to the internal toaster state. This is the right choi
1313

1414
In comparison to [`useToaster()`](/docs/use-toaster) it does not handle pausing or provide handlers for creating your own notification system.
1515

16-
```
16+
```jsx
1717
import { useToasterStore } from "react-hot-toast";
1818

1919
const { toasts, pausedAt } = useToasterStore();

site/pages/docs/use-toaster.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ const Notifications = () => {
7171
onMouseLeave={endPause}
7272
>
7373
{toasts.map((toast) => {
74-
const offset = calculateOffset(toast.id, {
74+
const offset = calculateOffset(toast, {
7575
reverseOrder: false,
76-
margin: 8,
76+
gutter: 8,
7777
});
7878

7979
const ref = (el) => {

0 commit comments

Comments
 (0)