ublo-lib 1.47.80 → 1.47.81

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.
@@ -14,7 +14,7 @@ export default function Book({ instructors, trombi }) {
14
14
  const [language, setLanguage] = React.useState("");
15
15
  const [search, setSearch] = React.useState("");
16
16
  const [loading, setLoading] = React.useState(false);
17
- const isTrombi = !Object.keys(prefixes).includes(lang) || trombi;
17
+ const isTrombi = trombi || !Object.keys(prefixes).includes(lang);
18
18
  const refreshContext = React.useCallback(async () => {
19
19
  try {
20
20
  setLoading(true);
@@ -1 +1 @@
1
- {"version":3,"file":"instructor.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/instructor.js"],"names":[],"mappings":"AAYA;;;;;;4CA2FC"}
1
+ {"version":3,"file":"instructor.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/instructor.js"],"names":[],"mappings":"AAYA;;;;;;4CAyFC"}
@@ -16,7 +16,6 @@ export default function Instructor({ instructor, formFields, formSendFunction, t
16
16
  const [loading, setLoading] = React.useState(true);
17
17
  const [picture, setPicture] = React.useState(photo);
18
18
  const [popupOpened, setPopupOpened] = React.useState(false);
19
- const prefixLang = lang === "fr" ? "fr" : "en";
20
19
  const openPopup = async (e) => {
21
20
  if (!popup)
22
21
  return;
@@ -29,7 +28,7 @@ export default function Instructor({ instructor, formFields, formSendFunction, t
29
28
  const Tag = trombi ? "div" : Link;
30
29
  const divProps = {};
31
30
  const linkProps = {
32
- href: `${prefixes[prefixLang]}/${uri}`,
31
+ href: `${prefixes[lang]}/${uri}`,
33
32
  onClick: openPopup,
34
33
  };
35
34
  const props = trombi ? divProps : linkProps;
@@ -2,5 +2,6 @@ export default prefixes;
2
2
  declare namespace prefixes {
3
3
  let fr: string;
4
4
  let en: string;
5
+ let nl: string;
5
6
  }
6
7
  //# sourceMappingURL=prefixes.d.ts.map
@@ -1,5 +1,6 @@
1
1
  const prefixes = {
2
2
  fr: "/moniteur",
3
3
  en: "/instructor",
4
+ nl: "/instructeur",
4
5
  };
5
6
  export default prefixes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.47.80",
3
+ "version": "1.47.81",
4
4
  "peerDependencies": {
5
5
  "classnames": "^2.5.1",
6
6
  "dt-design-system": "^3.12.0",