Fix formatting issues in StatusBubble and

DashboardHeader components
This commit is contained in:
Simon Larsen
2023-11-17 13:35:12 +00:00
parent 7126fdbdae
commit 544bbb2d2f
3 changed files with 10 additions and 3 deletions

View File

@@ -15,7 +15,9 @@ const Statusbubble: FunctionComponent<ComponentProps> = (
return (
<div className="flex" style={props.style}>
<div
className={`flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full mr-2 ${props.shouldAnimate ? 'animate-pulse' : ''}`}
className={`flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full mr-2 ${
props.shouldAnimate ? 'animate-pulse' : ''
}`}
style={{
backgroundColor: props.color
? props.color.toString()

View File

@@ -175,7 +175,8 @@ const DashboardHeader: FunctionComponent<ComponentProps> = (
getAllEnvVars()
) &&
props.paymentMethodsCount !== undefined &&
props.paymentMethodsCount === 0 && !props.selectedProject.resellerId ? (
props.paymentMethodsCount === 0 &&
!props.selectedProject.resellerId ? (
<Button
title="Add Card Details"
onClick={() => {

View File

@@ -214,7 +214,11 @@ const MonitorsTable: FunctionComponent<ComponentProps> = (
if (item && item['disableActiveMonitoring']) {
return (
<Statusbubble shouldAnimate={false} color={Grey} text={'Disabled'} />
<Statusbubble
shouldAnimate={false}
color={Grey}
text={'Disabled'}
/>
);
}