Skip to content

Commit

Permalink
fix(tabs): remove console
Browse files Browse the repository at this point in the history
  • Loading branch information
carolin913 committed Jun 7, 2022
1 parent 46f35be commit 8a73707
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/tabs/TabBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const TabBar: React.FC<TabBarProps> = (props) => {

let offset = 0;

console.log('===containerRef', containerRef.current);
if (containerRef.current) {
const itemsRef = containerRef.current.querySelectorAll('.t-tabs__nav-item');

Expand All @@ -41,11 +40,6 @@ const TabBar: React.FC<TabBarProps> = (props) => {
return;
}
const itemPropValue = getComputedStyle(computedItem)[itemProp];
console.log(
'===itemPropValue',
JSON.stringify(getComputedStyle(computedItem).width),
JSON.stringify(computedItem.offsetWidth),
);
setBarStyle({
transform: `${transformPosition}(${offset}px)`,
[barBorderProp]: itemPropValue,
Expand Down

0 comments on commit 8a73707

Please sign in to comment.