Skip to content

Commit 173dda0

Browse files
authored
README: Fixed the code example of the advanced usage (#98)
1 parent 9d2ce4f commit 173dda0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,16 @@ You can also hook into the toast life-cycle by adding a parameter to the JSX Fun
166166

167167
```jsx
168168
toast.custom(
169-
(t) => {
169+
(t) => (
170170
<div>
171171
<h1>Custom Toast</h1>
172172
<p>This is a custom toast!</p>
173173
<p>{t.visible ? 'Showing' : 'I will close in 1 second'}</p>
174174
<button onClick={() => toast.dismiss(t.id)}>Close Toast</button>
175175
</div>;
176-
},
176+
),
177177
{
178-
unmoutDelay: 1000,
178+
unmountDelay: 1000,
179179
}
180180
);
181181
```

0 commit comments

Comments
 (0)