bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/common/toast/container.jsx
2022-02-15 17:57:50 +00:00

31 lines
778 B
JavaScript
Executable File

import React from 'react';
import Styled from './styles';
import Settings from '/imports/ui/services/settings';
class ToastContainer extends React.Component {
// we never want this component to update since will break Toastify
shouldComponentUpdate() {
return false;
}
render() {
const { animations } = Settings.application;
return (
<Styled.ToastifyContainer
closeButton={(<Styled.CloseIcon iconName="close" animations={animations} />)}
autoClose={5000}
toastClassName="toastClass"
bodyClassName="toastBodyClass"
progressClassName="toastProgressClass"
newestOnTop={false}
hideProgressBar={false}
closeOnClick
pauseOnHover
/>
);
}
}
export default ToastContainer;