File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
libs/remix-ui/toaster/src/lib Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 11import React , { useEffect } from 'react' // eslint-disable-line
2- import { Toaster as SonnerToaster , toast } from 'sonner'
2+ import { Toaster as SonnerToaster , toast } from 'sonner'
33
44import './toaster.css'
55
66// Export toast so callers can use toast.dismiss(id)
7- export { toast }
7+ export { toast }
88
99/* eslint-disable-next-line */
1010export interface ToasterProps {
@@ -105,9 +105,9 @@ export const ToastTrigger = (props: ToasterProps) => {
105105 }
106106 )
107107 // Call the callback with the toast ID so caller can dismiss it later
108- if ( props . onToastCreated ) {
109- props . onToastCreated ( toastId )
110- }
108+ if ( props . onToastCreated ) {
109+ props . onToastCreated ( toastId )
110+ }
111111 }
112112 }
113113 } , [ ] )
@@ -230,8 +230,7 @@ export const Toaster = (props: ToasterProps) => {
230230 }
231231 } , [ props . message , props . timestamp ] )
232232
233- return < div > </ div >
233+ return < div > </ div >
234234}
235235
236-
237236export default Toaster
You can’t perform that action at this time.
0 commit comments