Skip to content

Commit 73dd399

Browse files
committed
refactor: prefix position → $position
1 parent 207a7da commit 73dd399

File tree

1 file changed

+3
-3
lines changed
  • packages/react/src/components/Card/CardMedia/Controls/ProgressBar

1 file changed

+3
-3
lines changed

packages/react/src/components/Card/CardMedia/Controls/ProgressBar/Tooltip.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ const sizeScales = { normal: 0.8 }
99
const getMarkerFontSize = size => BASE_FONT_SIZE * (sizeScales[size] || 1)
1010

1111
const TooltipBase = styled('span').attrs(
12-
({ position, $isDragging, $visible }) => ({
12+
({ $position, $isDragging, $visible }) => ({
1313
style: {
14-
left: `${position}px`,
14+
left: `${$position}px`,
1515
top: $visible ? '-4px' : '0px',
1616
visibility: $visible ? '$visible' : 'hidden',
1717
opacity: $visible ? 1 : 0,
@@ -39,7 +39,7 @@ const Tooltip = forwardRef(
3939
<>
4040
<TooltipBase
4141
$visible={$isVisible}
42-
position={$positionX}
42+
$position={$positionX}
4343
$cardSize={size}
4444
ref={ref}
4545
$isDragging={$isDragging}

0 commit comments

Comments
 (0)