* change tag to h2 to avoid the overflow * delect commit * make the font size bigger when screen size is more than 1000px * Update chat.scss Co-authored-by: Michael Kohl <citizen428@dev.to> Co-authored-by: Michael Kohl <me@citizen428.net>
22 lines
642 B
JavaScript
22 lines
642 B
JavaScript
import { h } from 'preact';
|
|
import PropTypes from 'prop-types';
|
|
|
|
export const ChannelDescriptionSection = ({
|
|
channelName,
|
|
channelDescription,
|
|
currentMembershipRole,
|
|
}) => {
|
|
return (
|
|
<div className="p-4 grid gap-2 crayons-card mb-4 channel_details">
|
|
<h2 className="mb-1 channel_title">{channelName}</h2>
|
|
<p>{channelDescription}</p>
|
|
<p className="fw-bold">You are a channel {currentMembershipRole}</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
ChannelDescriptionSection.propTypes = {
|
|
channelName: PropTypes.string.isRequired,
|
|
currentMembershipRole: PropTypes.string.isRequired,
|
|
channelDescription: PropTypes.string.isRequired,
|
|
};
|