@nualang/nualang-ui-components 0.1.1171 → 0.1.1172
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.
|
@@ -191,6 +191,7 @@ function Messages({
|
|
|
191
191
|
moveScriptItem: moveScriptItem,
|
|
192
192
|
provided: provided
|
|
193
193
|
}, m, otherProps)))) : /*#__PURE__*/_react.default.createElement("div", null, m?.question && !isLivePlayer && /*#__PURE__*/_react.default.createElement(_Question.default, _extends({
|
|
194
|
+
t: t,
|
|
194
195
|
languageTag: languageTag,
|
|
195
196
|
key: `messx_${i}`,
|
|
196
197
|
messageIndex: i,
|
|
@@ -210,6 +211,7 @@ function Messages({
|
|
|
210
211
|
noAnswerCounts: noAnswerCounts,
|
|
211
212
|
messages: messages
|
|
212
213
|
}, m, otherProps)), !m?.question && /*#__PURE__*/_react.default.createElement(_Message.default, _extends({
|
|
214
|
+
t: t,
|
|
213
215
|
languageTag: languageTag,
|
|
214
216
|
key: `messy_${i}`,
|
|
215
217
|
disableTranslation: disableTranslation,
|
|
@@ -59,7 +59,8 @@ function SearchFilters({
|
|
|
59
59
|
forLang,
|
|
60
60
|
sort,
|
|
61
61
|
difficulty,
|
|
62
|
-
difficultyOptions
|
|
62
|
+
difficultyOptions,
|
|
63
|
+
showCreateCourseButton
|
|
63
64
|
}) {
|
|
64
65
|
const [searchText, setSearchText] = (0, _react.useState)("");
|
|
65
66
|
const debouncedSearch = (0, _useDebounce.default)(searchText, 500);
|
|
@@ -200,7 +201,19 @@ function SearchFilters({
|
|
|
200
201
|
duration: theme.transitions.duration.leavingScreen
|
|
201
202
|
})
|
|
202
203
|
})
|
|
203
|
-
})))
|
|
204
|
+
}))), showCreateCourseButton && /*#__PURE__*/_react.default.createElement(_material.Grid, {
|
|
205
|
+
item: true,
|
|
206
|
+
xs: 12,
|
|
207
|
+
sm: 12,
|
|
208
|
+
md: 2.5
|
|
209
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Button, {
|
|
210
|
+
onClick: handleCreateCourse,
|
|
211
|
+
variant: "contained",
|
|
212
|
+
color: "primary",
|
|
213
|
+
endIcon: /*#__PURE__*/_react.default.createElement(_Add.default, null),
|
|
214
|
+
fullWidth: true,
|
|
215
|
+
role: "link"
|
|
216
|
+
}, t("create_course"))))));
|
|
204
217
|
}
|
|
205
218
|
function SearchCourses({
|
|
206
219
|
t = text => text,
|
|
@@ -242,7 +255,8 @@ function SearchCourses({
|
|
|
242
255
|
setSearch,
|
|
243
256
|
handleDuplicateCourse,
|
|
244
257
|
difficulty,
|
|
245
|
-
difficultyOptions
|
|
258
|
+
difficultyOptions,
|
|
259
|
+
showCreateCourseButton
|
|
246
260
|
}) {
|
|
247
261
|
const {
|
|
248
262
|
classes
|
|
@@ -276,7 +290,8 @@ function SearchCourses({
|
|
|
276
290
|
sort: sort,
|
|
277
291
|
forLang: forLang,
|
|
278
292
|
difficulty: difficulty,
|
|
279
|
-
difficultyOptions: difficultyOptions
|
|
293
|
+
difficultyOptions: difficultyOptions,
|
|
294
|
+
showCreateCourseButton: showCreateCourseButton
|
|
280
295
|
}), isLoading || courses !== undefined && courses.length > 0 ? /*#__PURE__*/_react.default.createElement("div", {
|
|
281
296
|
className: classes.root
|
|
282
297
|
}, /*#__PURE__*/_react.default.createElement(_Courses.default, {
|