Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const renderActionLink = (label, url) => (
- <a href={url} >{label}</a>
- )
- componentDidMount() {
- Eventer.on('toastFetched', this.handleToast)
- }
- handleToast = ({ message = '', action: { label, url } = {} }) => {
- const params = label? {closeButton: renderActionLink(label,url)}: undefined;
- showToast(toast, params)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement