@selfcommunity/react-templates 0.4.5-courses.109 → 0.4.5-courses.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,8 +21,6 @@ export interface CourseProps {
21
21
  * @default null
22
22
  */
23
23
  courseId?: number;
24
- page?: 'students' | 'comments';
25
- onTabChange?: (page: 'students' | 'comments') => void;
26
24
  viewDashboard?: boolean;
27
25
  }
28
26
  export default function Course(inProps: CourseProps): JSX.Element;
@@ -21,7 +21,7 @@ function Course(inProps) {
21
21
  props: inProps,
22
22
  name: constants_1.PREFIX
23
23
  });
24
- const { id = 'course', className = null, course = null, courseId = null, page, onTabChange, viewDashboard } = props;
24
+ const { id = 'course', className = null, course = null, courseId = null, viewDashboard } = props;
25
25
  // HOOKS
26
26
  const { scCourse, error } = (0, react_core_1.useSCFetchCourse)({
27
27
  id: courseId,
@@ -32,7 +32,7 @@ function Course(inProps) {
32
32
  return null;
33
33
  }
34
34
  if (viewDashboard) {
35
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, { children: (0, jsx_runtime_1.jsx)(react_ui_1.CourseDashboard.Teacher, { course: scCourse, page: page, onTabChange: onTabChange }) })));
35
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, { children: (0, jsx_runtime_1.jsx)(react_ui_1.CourseDashboard.Teacher, { course: scCourse }) })));
36
36
  }
37
37
  return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, { children: (0, jsx_runtime_1.jsx)(react_ui_1.CourseDashboard.Student, { course: scCourse }) })));
38
38
  }
@@ -21,8 +21,6 @@ export interface CourseProps {
21
21
  * @default null
22
22
  */
23
23
  courseId?: number;
24
- page?: 'students' | 'comments';
25
- onTabChange?: (page: 'students' | 'comments') => void;
26
24
  viewDashboard?: boolean;
27
25
  }
28
26
  export default function Course(inProps: CourseProps): JSX.Element;
@@ -18,7 +18,7 @@ export default function Course(inProps) {
18
18
  props: inProps,
19
19
  name: PREFIX
20
20
  });
21
- const { id = 'course', className = null, course = null, courseId = null, page, onTabChange, viewDashboard } = props;
21
+ const { id = 'course', className = null, course = null, courseId = null, viewDashboard } = props;
22
22
  // HOOKS
23
23
  const { scCourse, error } = useSCFetchCourse({
24
24
  id: courseId,
@@ -29,7 +29,7 @@ export default function Course(inProps) {
29
29
  return null;
30
30
  }
31
31
  if (viewDashboard) {
32
- return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className) }, { children: _jsx(CourseDashboard.Teacher, { course: scCourse, page: page, onTabChange: onTabChange }) })));
32
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className) }, { children: _jsx(CourseDashboard.Teacher, { course: scCourse }) })));
33
33
  }
34
34
  return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className) }, { children: _jsx(CourseDashboard.Student, { course: scCourse }) })));
35
35
  }