@@ -56,6 +56,8 @@ interface Props {
5656 location ?: string
5757}
5858
59+ const bannerStyle = { border : 'none' , borderRadius : '6px' }
60+
5961const RateLimitAlert : FC < Props > = ( { alertOnly, className, location} ) => {
6062 const resources = useSelector ( extractRateLimitResources )
6163 const status = useSelector ( extractRateLimitStatus )
@@ -68,6 +70,7 @@ const RateLimitAlert: FC<Props> = ({alertOnly, className, location}) => {
6870 dispatch ( showOverlay ( 'write-limit' , null , ( ) => dispatch ( dismissOverlay ) ) )
6971 }
7072
73+ // notification for write limit reached
7174 useEffect ( ( ) => {
7275 if ( CLOUD && status === 'exceeded' && resources . includes ( 'write' ) ) {
7376 if ( showUpgrade ) {
@@ -110,6 +113,7 @@ const RateLimitAlert: FC<Props> = ({alertOnly, className, location}) => {
110113 ? IconFont . AlertTriangle
111114 : IconFont . Cloud
112115
116+ // banner panel for cardinality limit exceeded
113117 if ( CLOUD && status === 'exceeded' && resources . includes ( 'cardinality' ) ) {
114118 return (
115119 < FlexBox
@@ -124,13 +128,15 @@ const RateLimitAlert: FC<Props> = ({alertOnly, className, location}) => {
124128 icon = { icon }
125129 hideMobileIcon = { true }
126130 textColor = { InfluxColors . Yeti }
131+ style = { bannerStyle }
127132 >
128133 < RateLimitAlertContent />
129134 </ BannerPanel >
130135 </ FlexBox >
131136 )
132137 }
133138
139+ // upgrade button
134140 if ( CLOUD && ! alertOnly ) {
135141 return (
136142 < CloudUpgradeButton
@@ -155,6 +161,7 @@ const RateLimitAlert: FC<Props> = ({alertOnly, className, location}) => {
155161 }
156162 )
157163 } }
164+ size = { ComponentSize . ExtraSmall }
158165 />
159166 )
160167 }
0 commit comments