Skip to content

Commit 1b010b3

Browse files
committed
feat: optimize sonner demo
1 parent 9c95ba6 commit 1b010b3

File tree

1 file changed

+1
-24
lines changed
  • playground/src/app/(demo)/sonner

1 file changed

+1
-24
lines changed

playground/src/app/(demo)/sonner/page.tsx

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,9 @@
11
'use client';
2-
import { Button, toast, useSonner } from 'soybean-react-ui';
2+
import { toast } from 'soybean-react-ui';
33

44
const SonnerPage = () => {
5-
const a = useSonner();
6-
75
return (
86
<div>
9-
<button
10-
onClick={() =>
11-
toast('Hello', {
12-
duration: 100000
13-
})
14-
}
15-
>
16-
Click me
17-
</button>
18-
19-
<button
20-
onClick={() =>
21-
toast.success('Hello', {
22-
description: 'This is a description',
23-
duration: 100000
24-
})
25-
}
26-
>
27-
Click me
28-
</button>
29-
307
<button
318
onClick={() =>
329
toast.success('Hello', {

0 commit comments

Comments
 (0)