Skip to content

Commit 17a62ad

Browse files
committed
remove constants
1 parent 613d511 commit 17a62ad

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11
export const BUBBLE_SERIES_ID = '__release_bubble__';
22
export const BUBBLE_AREA_SERIES_ID = '__release_bubble_area__';
3-
export const DEFAULT_BUBBLE_SIZE = 4;
4-
5-
// "padding" around the bubbles as it is drawn on canvas vs CSS, this may need
6-
// to move into `renderReleaseBubble` if it needs to be customizable
7-
export const RELEASE_BUBBLE_Y_PADDING = 2;
8-
export const RELEASE_BUBBLE_X_PADDING = 1;

static/app/views/dashboards/widgets/timeSeriesWidget/releaseBubbles/useReleaseBubbles.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ import {useUser} from 'sentry/utils/useUser';
2929
import {
3030
BUBBLE_AREA_SERIES_ID,
3131
BUBBLE_SERIES_ID,
32-
DEFAULT_BUBBLE_SIZE,
33-
RELEASE_BUBBLE_X_PADDING,
34-
RELEASE_BUBBLE_Y_PADDING,
3532
} from 'sentry/views/dashboards/widgets/timeSeriesWidget/releaseBubbles/constants';
3633
import {createReleaseBubbleHighlighter} from 'sentry/views/dashboards/widgets/timeSeriesWidget/releaseBubbles/createReleaseBubbleHighlighter';
3734
import type {Bucket} from 'sentry/views/dashboards/widgets/timeSeriesWidget/releaseBubbles/types';
@@ -343,8 +340,8 @@ export function useReleaseBubbles({
343340
releases,
344341
minTime,
345342
maxTime,
346-
bubbleSize = DEFAULT_BUBBLE_SIZE,
347-
bubblePadding = {x: RELEASE_BUBBLE_X_PADDING, y: RELEASE_BUBBLE_Y_PADDING},
343+
bubbleSize = 4,
344+
bubblePadding = {x: 2, y: 1},
348345
}: UseReleaseBubblesParams) {
349346
const organization = useOrganization();
350347
const {openDrawer} = useDrawer();

0 commit comments

Comments
 (0)