Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ruggi committed Nov 22, 2024
1 parent b98e6e0 commit 7dbf4fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions editor/src/components/canvas/controls/grid-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2341,25 +2341,25 @@ const RulerMarkers = React.memo((props: { path: ElementPath }) => {
/>
<RulerMarkerIndicator parentGrid={markers.parentGrid} marker={markers.rowEnd} axis={'row'} />
{/* Offset lines */}
<GridOffsetLine
<GridCellOffsetLine
top={markers.columnStart.top}
left={markers.columnStart.left}
size={markers.cellRect.y - markers.gridRect.y}
orientation='vertical'
/>
<GridOffsetLine
<GridCellOffsetLine
top={markers.columnEnd.top}
left={markers.columnEnd.left}
size={markers.cellRect.y - markers.gridRect.y}
orientation='vertical'
/>
<GridOffsetLine
<GridCellOffsetLine
top={markers.rowStart.top}
left={markers.rowStart.left}
size={markers.cellRect.x - markers.gridRect.x}
orientation='horizontal'
/>
<GridOffsetLine
<GridCellOffsetLine
top={markers.rowEnd.top}
left={markers.rowEnd.left}
size={markers.cellRect.x - markers.gridRect.x}
Expand Down Expand Up @@ -2614,7 +2614,7 @@ function skewMarkerPosition(
return 0
}

const GridOffsetLine = React.memo(
const GridCellOffsetLine = React.memo(
(props: { top: number; left: number; size: number; orientation: 'vertical' | 'horizontal' }) => {
const colorTheme = useColorTheme()

Expand All @@ -2638,7 +2638,7 @@ const GridOffsetLine = React.memo(
)
},
)
GridOffsetLine.displayName = 'GridOffsetLine'
GridCellOffsetLine.displayName = 'GridCellOffsetLine'

const GridCellOutline = React.memo(
(props: { top: number; left: number; width: number; height: number }) => {
Expand Down

0 comments on commit 7dbf4fe

Please sign in to comment.