Skip to content

Commit 99a66f5

Browse files
update
1 parent 9ba6879 commit 99a66f5

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

context/GlobalProvider.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const GlobalProvider = ({ children }) => {
1414
.then((res) => {
1515
if (res) {
1616
setReposData(res);
17-
console.log("Repo data fetched");
1817
} else {
1918
setReposData(null);
2019
}

hooks/useProjectInfo.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { useMemo } from "react";
33
function useProjectInfo(reposData, githubRepoName) {
44
const findProjectObjectByName = (array, name) => {
55
if (!array) {
6-
console.log("Vous devez fournir un tableau");
6+
// console.log("Vous devez fournir un tableau");
77
return null;
88
}
99

1010
if (!name) {
11-
console.log("Vous devez fournir un élément à rechercher");
11+
// console.log("Vous devez fournir un élément à rechercher");
1212
return null;
1313
}
1414
return array.find((item) => item.name === name);

src/i18n.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ i18n
3838
},
3939
},
4040
fallbackLng: "en",
41-
debug: true,
41+
debug: false,
4242
interpolation: {
4343
escapeValue: false,
4444
},
4545
});
4646

4747
function fillTranslations(cardsData) {
48-
console.log("Populate translations object...");
48+
// console.log("Populate translations object...");
4949
cardsData.forEach((card) => {
5050
card.translations.forEach((translation) => {
5151
const { lang, description } = translation;
@@ -65,8 +65,6 @@ function fillTranslations(cardsData) {
6565
}
6666

6767
fillTranslations(cardsData);
68-
console.log("Translations injected👍");
69-
70-
// console.log(i18n.getResourceBundle("en", "app.card"));
68+
// console.log("Translations injected👍");
7169

7270
export default i18n;

utils/helpers.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export const fetchReposData = async (orgName) => {
1313
throw new Error(`Error: ${response.status} ${response.statusText}`);
1414
}
1515
const repos = await response.json();
16-
console.log(repos);
1716
return repos;
1817
} catch (error) {
1918
console.error("Fetch error:", error);

0 commit comments

Comments
 (0)