Skip to content

Commit cc34e5f

Browse files
committed
codemod(space): apply manual fixes
1 parent f7be9c6 commit cc34e5f

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

static/app/components/charts/baseChart.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ const getTooltipStyles = (p: {theme: Theme}) => css`
707707
color: ${p.theme.tokens.content.secondary};
708708
font-family: ${p.theme.font.family.sans};
709709
font-variant-numeric: tabular-nums;
710-
padding: ${p.space.md} ${p.space.xl};
710+
padding: ${p.theme.space.md} ${p.theme.space.xl};
711711
border-radius: ${p.theme.radius.md} ${p.theme.radius.md} 0 0;
712712
cursor: pointer;
713713
font-size: ${p.theme.font.size.sm};
@@ -731,7 +731,7 @@ const getTooltipStyles = (p: {theme: Theme}) => css`
731731
border-radius: ${p.theme.radius.md};
732732
}
733733
.tooltip-label {
734-
margin-right: ${p.space.md};
734+
margin-right: ${p.theme.space.md};
735735
display: block;
736736
width: 100%;
737737
white-space: nowrap;
@@ -771,7 +771,7 @@ const getTooltipStyles = (p: {theme: Theme}) => css`
771771
border-radius: 0 0 ${p.theme.radius.md} ${p.theme.radius.md};
772772
display: flex;
773773
justify-content: space-between;
774-
gap: ${p.space['2xl']};
774+
gap: ${p.theme.space['2xl']};
775775
}
776776
777777
.tooltip-footer-centered {

static/app/components/events/autofix/insights/collapsibleChainLink.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const RethinkButtonContainer = styled('div')`
164164
`;
165165

166166
const AddEditContainer = styled('div')`
167-
padding: ${space(1)};
167+
padding: ${p => p.theme.space.md};
168168
width: 100%;
169169
background: ${p => p.theme.tokens.background.primary};
170170
border-radius: ${p => p.theme.radius.md};
@@ -184,5 +184,5 @@ const RethinkLabel = styled('span')`
184184
align-items: center;
185185
font-size: ${p => p.theme.font.size.sm};
186186
color: ${p => p.theme.tokens.content.secondary};
187-
margin-right: ${space(0.5)};
187+
margin-right: ${p => p.theme.space.xs};
188188
`;

static/app/views/performance/transactionSummary/transactionTags/tagsHeatMap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ function TagsHeatMap(
112112
aggregateColumn,
113113
} = props;
114114

115+
const theme = useTheme();
115116
const {view} = useDomainViewFilters();
116117
const chartRef = useRef<ReactEchartsRef>(null);
117118
const [chartElement, setChartElement] = useState<VirtualReference | undefined>();
@@ -307,7 +308,6 @@ function TagsHeatMap(
307308
}
308309
);
309310

310-
const theme = useTheme();
311311
const portaledContent =
312312
!chartElement || !overlayState.isOpen ? null : (
313313
<PositionWrapper

0 commit comments

Comments
 (0)