Skip to content

Commit

Permalink
fix: remove console.log's
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythie committed Nov 20, 2024
1 parent 6dd2674 commit 8cc2929
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
2 changes: 0 additions & 2 deletions apps/web/src/components/(dashboard)/avatar/stack-avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ export const StackAvatar = ({ first, zIndex, fallbackText = '', type }: StackAva
zIndexClass = ZIndexes[zIndex] ?? '';
}

console.log({ type, fallbackText });

switch (type) {
case RecipientStatusType.UNSIGNED:
classes = 'bg-dawn-200 text-dawn-900';
Expand Down
17 changes: 0 additions & 17 deletions packages/ui/primitives/auto-sized-text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,6 @@ export function AutoSizedText({
const isElementTooBig =
childDimensions.width > parentDimensions.width || childDimensions.height > targetHeight;

console.log({
fontSizeLowerBound: fontSizeLowerBound.current,
fontSizeUpperBound: fontSizeUpperBound.current,
fontSize: fontSize.current,
});

if (isElementTooBig) {
// Scale down if element is bigger than target
newFontSize = (fontSizeLowerBound.current + fontSize.current) / 2;
Expand All @@ -95,14 +89,6 @@ export function AutoSizedText({
fontSizeLowerBound.current = fontSize.current;
}

console.log({
currentFontSize: fontSize.current,
newFontSize,
targetHeight,
currentHeight: childDimensions.height,
parentHeight: parentDimensions.height,
});

fontSize.current = newFontSize;

// Convert to rem if useRem is true
Expand Down Expand Up @@ -131,13 +117,10 @@ export function AutoSizedText({
fontSizeLowerBound.current = 0;
fontSizeUpperBound.current = parentDimensions.height;

console.log('parentDimensions', structuredClone(parentDimensions));

let iterationCount = 0;

while (iterationCount <= ITERATION_LIMIT) {
const childDimensions = getElementDimensions(childElement);
console.log({ childDimensions });

const targetHeight =
maxHeight && maxHeight < parentDimensions.height ? maxHeight : parentDimensions.height;
Expand Down

0 comments on commit 8cc2929

Please sign in to comment.