Skip to content

Commit

Permalink
refactor: prefix position → $position
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jul 18, 2024
1 parent 207a7da commit 73dd399
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const sizeScales = { normal: 0.8 }
const getMarkerFontSize = size => BASE_FONT_SIZE * (sizeScales[size] || 1)

const TooltipBase = styled('span').attrs(
({ position, $isDragging, $visible }) => ({
({ $position, $isDragging, $visible }) => ({
style: {
left: `${position}px`,
left: `${$position}px`,
top: $visible ? '-4px' : '0px',
visibility: $visible ? '$visible' : 'hidden',
opacity: $visible ? 1 : 0,
Expand Down Expand Up @@ -39,7 +39,7 @@ const Tooltip = forwardRef(
<>
<TooltipBase
$visible={$isVisible}
position={$positionX}
$position={$positionX}
$cardSize={size}
ref={ref}
$isDragging={$isDragging}
Expand Down

0 comments on commit 73dd399

Please sign in to comment.