analytica-frontend-lib 1.3.17 → 1.3.18
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.
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25893,6 +25893,18 @@ var QuizHeaderResult = (0, import_react74.forwardRef)(
|
|
|
25893
25893
|
);
|
|
25894
25894
|
}
|
|
25895
25895
|
);
|
|
25896
|
+
var getRetryButtonLabel = (type) => {
|
|
25897
|
+
switch (type) {
|
|
25898
|
+
case "ATIVIDADE" /* ATIVIDADE */:
|
|
25899
|
+
return "Refazer atividade";
|
|
25900
|
+
case "QUESTIONARIO" /* QUESTIONARIO */:
|
|
25901
|
+
return "Repetir question\xE1rio";
|
|
25902
|
+
case "SIMULADO" /* SIMULADO */:
|
|
25903
|
+
return "Repetir simulado";
|
|
25904
|
+
default:
|
|
25905
|
+
return "Refazer";
|
|
25906
|
+
}
|
|
25907
|
+
};
|
|
25896
25908
|
var QuizResultHeaderTitle = (0, import_react74.forwardRef)(({ className, showBadge = true, onRepeat, canRetry, ...props }, ref) => {
|
|
25897
25909
|
const { quiz } = useQuizStore();
|
|
25898
25910
|
return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
|
|
@@ -25914,7 +25926,7 @@ var QuizResultHeaderTitle = (0, import_react74.forwardRef)(({ className, showBad
|
|
|
25914
25926
|
action: "primary",
|
|
25915
25927
|
size: "medium",
|
|
25916
25928
|
onClick: onRepeat,
|
|
25917
|
-
children:
|
|
25929
|
+
children: getRetryButtonLabel(quiz?.type)
|
|
25918
25930
|
}
|
|
25919
25931
|
),
|
|
25920
25932
|
showBadge && /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(QuizBadge, { subtype: quiz?.subtype || void 0 })
|