* Update chat.scss --skip-ci * Fix height issue * Add highlighting * Implement bannged user handling for chat * Add scroll obsever * Limit initial messages load count & max messages * Add new message alert when scrolled * Add link to usernames in chat * Implement channel clearing feature * Update parserOptions * Implement banning feature for chat app WIP * Add policy for ChatChannelsController * Fix arugment error * Update user_not_authorized to handle JSON request * Update specs for updated user_not_authorized * Update font-weight for windows os
18 lines
381 B
JavaScript
18 lines
381 B
JavaScript
import { h } from 'preact';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const Alert = ({ showAlert }) => {
|
|
const otherClassname = showAlert ? '' : 'chatalert__default--hidden';
|
|
|
|
return (
|
|
<div className={`chatalert__default ${otherClassname}`}>
|
|
More new messages below
|
|
</div>
|
|
);
|
|
};
|
|
|
|
Alert.propTypes = {
|
|
showAlert: PropTypes.bool.isRequired,
|
|
};
|
|
|
|
export default Alert;
|