- {activity.activity_type == 'TYPE_DYNAMIC' && (
-
- )}
- {activity.activity_type == 'TYPE_VIDEO' && (
-
- )}
- {activity.activity_type == 'TYPE_DOCUMENT' && (
-
- )}
- {activity.activity_type == 'TYPE_ASSIGNMENT' && (
-
- {assignment ? (
-
-
-
-
-
-
-
- ) : (
-
- )}
-
- )}
+
+
+
+
+
+
+
+
+ Chapter : {getChapterNameByActivityId(course, activity.id)}
+
+
+ {activity.name}
+
- )}
- >
- )}
-
- {/* Activity Actions below the content box */}
- {activity && activity.published == true && activity.content.paid_access != false && (
-
-
+
+ {activity && activity.published == true && activity.content.paid_access != false && (
+
+ {activity.activity_type != 'TYPE_ASSIGNMENT' && (
+ <>
+
+ {contributorStatus === 'ACTIVE' && activity.activity_type == 'TYPE_DYNAMIC' && (
+
+
+ Contribute
+
+ )}
+ >
+ )}
+
+ )}
+
+
- )}
- {/* Fixed Activity Secondary Bar */}
- {activity && activity.published == true && activity.content.paid_access != false && (
-
- )}
-
-
+ {activity && activity.published == false && (
+
+
+
+ This activity is not published yet
+
+
+
+ )}
+
+ {activity && activity.published == true && (
+ <>
+ {activity.content.paid_access == false ? (
+
+ ) : (
+
+ {/* Activity Types */}
+
+ {activity.activity_type == 'TYPE_DYNAMIC' && (
+
+ )}
+ {activity.activity_type == 'TYPE_VIDEO' && (
+
+ )}
+ {activity.activity_type == 'TYPE_DOCUMENT' && (
+
+ )}
+ {activity.activity_type == 'TYPE_ASSIGNMENT' && (
+
+ {assignment ? (
+
+
+
+
+
+
+
+ ) : (
+
+ )}
+
+ )}
+
+
+ )}
+ >
+ )}
+
+ {/* Activity Actions below the content box */}
+ {activity && activity.published == true && activity.content.paid_access != false && (
+
+ )}
+
+ {/* Fixed Activity Secondary Bar */}
+ {activity && activity.published == true && activity.content.paid_access != false && (
+
+ )}
+
+
+