Update BrandColors imports to use Green instead of Green500

This commit is contained in:
Simon Larsen 2024-04-19 11:56:24 +01:00
parent fb070b9448
commit d7a9adf791
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
8 changed files with 10 additions and 28 deletions

View File

@ -43,7 +43,6 @@ export const Violet500: Color = Color.fromString('#8b5cf6');
export const Fuchsia500: Color = Color.fromString('#d946ef');
export const Rose500: Color = Color.fromString('#f43f5e');
export const BrightColors: Color[] = [
Black,
Indigo500,

View File

@ -18,13 +18,7 @@ import QueryHelper from '../Types/Database/QueryHelper';
import ObjectID from 'Common/Types/ObjectID';
import OneUptimeDate from 'Common/Types/Date';
import MonitorStatus from 'Model/Models/MonitorStatus';
import {
Yellow,
Green,
Red,
Moroon500,
Black,
} from 'Common/Types/BrandColors';
import { Yellow, Green, Red, Moroon500, Black } from 'Common/Types/BrandColors';
import MonitorStatusService from './MonitorStatusService';
import IncidentState from 'Model/Models/IncidentState';
import IncidentStateService from './IncidentStateService';

View File

@ -13,7 +13,7 @@ const ColorCircle: FunctionComponent<ComponentProps> = (
return (
<Tooltip text={props.tooltip}>
<div
className="rounded-max h-3 w-3"
className="rounded-full h-3 w-3"
style={{
backgroundColor: props.color.toString(),
}}

View File

@ -180,9 +180,7 @@ const ExecutionLogsTable: FunctionComponent<ComponentProps> = (
);
}
return (
<Pill color={Red} text={OnCallDutyPolicyStatus.Error} />
);
return <Pill color={Red} text={OnCallDutyPolicyStatus.Error} />;
},
},
{

View File

@ -30,11 +30,7 @@ const ProbeStatusElement: FunctionComponent<ComponentProps> = (
}
return (
<Statusbubble
text={'Disconnected'}
color={Red}
shouldAnimate={false}
/>
<Statusbubble text={'Disconnected'} color={Red} shouldAnimate={false} />
);
};

View File

@ -213,10 +213,7 @@ const TeamView: FunctionComponent<PageComponentProps> = (
return <Pill text="Member" color={Green} />;
}
return (
<Pill
text="Invitation Sent"
color={Yellow}
/>
<Pill text="Invitation Sent" color={Yellow} />
);
},
},

View File

@ -87,9 +87,7 @@ const StatusPageDelete: FunctionComponent<PageComponentProps> = (
<Pill color={Green} text={'Signed up'} />
);
}
return (
<Pill color={Yellow} text={'Invite Sent'} />
);
return <Pill color={Yellow} text={'Invite Sent'} />;
},
},
]}

View File

@ -10,7 +10,7 @@ import SortOrder from 'Common/Types/BaseDatabase/SortOrder';
import DropdownUtil from 'CommonUI/src/Utils/Dropdown';
import { DropdownOption } from 'CommonUI/src/Components/Dropdown/Dropdown';
import { JSONObject } from 'Common/Types/JSON';
import ColorSquareCube from 'CommonUI/src/Components/ColorSquareCube/ColorSquareCube';
import ColorCircle from 'CommonUI/src/Components/ColorCircle/ColorCircle';
import AnalyticsBaseModel from 'Common/AnalyticsModels/BaseModel';
import { Green, Red } from 'Common/Types/BrandColors';
@ -122,7 +122,7 @@ const TracesList: FunctionComponent<PageComponentProps> = (
(spanObj.statusCode ===
SpanStatus.Unset ||
!spanObj.statusCode) ? (
<ColorSquareCube
<ColorCircle
color={Green}
tooltip="Span Status: Unset"
/>
@ -132,7 +132,7 @@ const TracesList: FunctionComponent<PageComponentProps> = (
{spanObj &&
spanObj.statusCode ===
SpanStatus.Ok ? (
<ColorSquareCube
<ColorCircle
color={Green}
tooltip="Span Status: Ok"
/>
@ -142,7 +142,7 @@ const TracesList: FunctionComponent<PageComponentProps> = (
{spanObj &&
spanObj.statusCode ===
SpanStatus.Error ? (
<ColorSquareCube
<ColorCircle
color={Red}
tooltip="Span Status: Error"
/>