|
@@ -11,6 +11,7 @@ import TypeCourse from "./TypeCourse";
|
|
|
import { useEffect, useState } from "react";
|
|
import { useEffect, useState } from "react";
|
|
|
import { fullUrl } from "../../utils";
|
|
import { fullUrl } from "../../utils";
|
|
|
import TypeSeries from "./TypeSeries";
|
|
import TypeSeries from "./TypeSeries";
|
|
|
|
|
+import DiscussionCount from "../discussion/DiscussionCount";
|
|
|
|
|
|
|
|
export type ArticleMode = "read" | "edit" | "wbw";
|
|
export type ArticleMode = "read" | "edit" | "wbw";
|
|
|
export type ArticleType =
|
|
export type ArticleType =
|
|
@@ -87,6 +88,7 @@ const ArticleWidget = ({
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div>
|
|
<div>
|
|
|
|
|
+ <DiscussionCount courseId={type === "textbook" ? courseId : undefined} />
|
|
|
{type === "article" ? (
|
|
{type === "article" ? (
|
|
|
<TypeArticle
|
|
<TypeArticle
|
|
|
type={type}
|
|
type={type}
|