client/app/bundles/course/forum/components/tables/ForumTable.tsx
Function ForumTable
has 154 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ForumTable: FC<Props> = (props) => {
const { forums } = props;
const { t } = useTranslation();
if (forums && forums.length === 0) {
return <Note message={t(translations.noForum)} />;
- Create a ticketCreate a ticket
Function customBodyRenderLite
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
customBodyRenderLite: (dataIndex): JSX.Element => {
const forum = forums[dataIndex];
return (
<>
- Create a ticketCreate a ticket