@nualang/nualang-ui-components 0.1.1301 → 0.1.1302
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.
|
@@ -892,10 +892,12 @@ function SectionList({
|
|
|
892
892
|
const [courseSectionWithProgress, setCourseSectionWithProgress] = useState([]);
|
|
893
893
|
useEffect(() => {
|
|
894
894
|
if (sections && memberCourseCompletions && selectedExercises) {
|
|
895
|
-
const sectionsWithProgress = calcCompletions(sections, memberCourseCompletions,
|
|
895
|
+
const sectionsWithProgress = calcCompletions(sections, memberCourseCompletions, selectedExercises, {
|
|
896
|
+
includeChallengeBots: isChallengeModeEnabled
|
|
897
|
+
});
|
|
896
898
|
setCourseSectionWithProgress(sectionsWithProgress);
|
|
897
899
|
}
|
|
898
|
-
}, [sections, memberCourseCompletions, selectedExercises]);
|
|
900
|
+
}, [sections, memberCourseCompletions, selectedExercises, isChallengeModeEnabled]);
|
|
899
901
|
const courseSections = courseSectionWithProgress && courseSectionWithProgress.length ? courseSectionWithProgress : sections;
|
|
900
902
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
901
903
|
children: courseSections.length > 0 ? courseSections.map((section, index) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Box from "@mui/material/Box";
|
|
2
2
|
import ResponsiveTabs from "../../Navigation/ResponsiveTabs/ResponsiveTabs";
|
|
3
|
-
import General from "./Tabs/General";
|
|
4
|
-
import Display from "./Tabs/Display";
|
|
5
|
-
import Subscription from "./Tabs/Subscription";
|
|
6
|
-
import EmailNotifications from "./Tabs/EmailNotifications";
|
|
3
|
+
import General from "./Tabs/General/General.jsx";
|
|
4
|
+
import Display from "./Tabs/Display/Display.jsx";
|
|
5
|
+
import Subscription from "./Tabs/Subscription/Subscription.jsx";
|
|
6
|
+
import EmailNotifications from "./Tabs/EmailNotifications/EmailNotifications.jsx";
|
|
7
7
|
import { checkIsGeneratedEmail } from "../../utils";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
9
|
export default function Settings({
|
package/dist/utils/index.js
CHANGED
|
@@ -389,7 +389,7 @@ export const calcTopicCompletions = (topic, completions = [], isSectionHidden, a
|
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
391
|
};
|
|
392
|
-
export const calcCompletions = (sections = [], completions = [], assignmentExercises, opts = {}) => sections.map(section => {
|
|
392
|
+
export const calcCompletions = (sections = [], completions = [], assignmentExercises = [], opts = {}) => sections.map(section => {
|
|
393
393
|
const {
|
|
394
394
|
includeChallengeBots = false
|
|
395
395
|
} = opts;
|