diff --git a/static/app/views/detectors/components/forms/metric/metric.tsx b/static/app/views/detectors/components/forms/metric/metric.tsx index 47e22fade5aab0..6c275339d4db75 100644 --- a/static/app/views/detectors/components/forms/metric/metric.tsx +++ b/static/app/views/detectors/components/forms/metric/metric.tsx @@ -228,7 +228,7 @@ function PriorityRow({ const thresholdAriaLabel = isHigh ? t('High threshold') : t('Medium threshold'); - const directionField = ( + const directionField = isHigh ? ( + ) : ( + ); return ( - + {isHigh ? t('High priority') : t('Medium priority')} {isHigh && *} @@ -677,11 +687,11 @@ const PriorityRowContainer = styled('div')` gap: ${space(1)}; `; -const PriorityDot = styled('div')<{$priority: 'high' | 'medium'}>` +const PriorityDot = styled('div')<{priority: 'high' | 'medium'}>` width: 8px; height: 8px; border-radius: 50%; - background-color: ${p => (p.$priority === 'high' ? p.theme.red300 : p.theme.yellow400)}; + background-color: ${p => (p.priority === 'high' ? p.theme.red300 : p.theme.yellow400)}; flex-shrink: 0; `;