ソースを参照

remove unnecessary logs

kaori 5 年 前
コミット
8109fa5cba
1 ファイル変更0 行追加5 行削除
  1. 0 5
      src/client/js/components/CustomNavigation.jsx

+ 0 - 5
src/client/js/components/CustomNavigation.jsx

@@ -16,8 +16,6 @@ const CustomNavigation = (props) => {
     tabs[key] = React.createRef();
   });
 
-  console.log(`customNavigation ${activeTab}`);
-
 
   function switchActiveTab(activeTab) {
     setActiveTab(activeTab);
@@ -45,7 +43,6 @@ const CustomNavigation = (props) => {
 
 
     if (navBar == null || navTabs == null) {
-      console.log(`${navBar},${navTabs}`);
       setSliderWidth(5);
       return;
     }
@@ -54,7 +51,6 @@ const CustomNavigation = (props) => {
     let tempML = 0;
 
     const styles = Object.entries(navTabs).map((el) => {
-      console.log('el[1]', el[1].offsetWidth);
       const width = getPercentage(el[1].offsetWidth, navBar.current.offsetWidth);
       const marginLeft = tempML;
       tempML += width;
@@ -66,7 +62,6 @@ const CustomNavigation = (props) => {
 
     setSliderWidth(width);
     setSliderMarginLeft(marginLeft);
-    console.log(`sliderWidth = ${sliderWidth}`);
 
   }, [activeTab]);