File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed
Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import { useMemo } from "react";
33function 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 ) ;
Original file line number Diff line number Diff line change 3838 } ,
3939 } ,
4040 fallbackLng : "en" ,
41- debug : true ,
41+ debug : false ,
4242 interpolation : {
4343 escapeValue : false ,
4444 } ,
4545 } ) ;
4646
4747function 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
6767fillTranslations ( cardsData ) ;
68- console . log ( "Translations injected👍" ) ;
69-
70- // console.log(i18n.getResourceBundle("en", "app.card"));
68+ // console.log("Translations injected👍");
7169
7270export default i18n ;
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments