Skip to content

Commit 32fcb6e

Browse files
yann300ci-bot
authored andcommitted
Fix formatting and spacing in toaster.tsx
1 parent 2d4f911 commit 32fcb6e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

libs/remix-ui/toaster/src/lib/toaster.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React, {useEffect} from 'react' // eslint-disable-line
2-
import {Toaster as SonnerToaster, toast} from 'sonner'
2+
import { Toaster as SonnerToaster, toast } from 'sonner'
33

44
import './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 */
1010
export 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-
237236
export default Toaster

0 commit comments

Comments
 (0)