-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toast #116
Conversation
Deploy preview for helix-react ready! Built with commit de927b9 |
@@ -5,12 +5,12 @@ import useEventListener from '../hooks/useEventListener'; | |||
const Alert = ({ onOpen, onClose, className, children, onDismiss, onSubmit, ...rest }) => { | |||
const hxRef = useEventListener({ onDismiss, onSubmit }); | |||
return ( | |||
<> | |||
<div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noticed <>
elements don't fix the disappearing react element error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicko-winner, sorry what's this error again? Does the <>
cause the error on render?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok thanks for the explanation. This helps alot. 👍
@@ -5,12 +5,12 @@ import useEventListener from '../hooks/useEventListener'; | |||
const Alert = ({ onOpen, onClose, className, children, onDismiss, onSubmit, ...rest }) => { | |||
const hxRef = useEventListener({ onDismiss, onSubmit }); | |||
return ( | |||
<> | |||
<div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicko-winner, sorry what's this error again? Does the <>
cause the error on render?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dev LGTM
@@ -5,12 +5,12 @@ import useEventListener from '../hooks/useEventListener'; | |||
const Alert = ({ onOpen, onClose, className, children, onDismiss, onSubmit, ...rest }) => { | |||
const hxRef = useEventListener({ onDismiss, onSubmit }); | |||
return ( | |||
<> | |||
<div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok thanks for the explanation. This helps alot. 👍
Add Toast component