Client: fix badges color
This commit is contained in:
parent
7a64964df2
commit
e277c8ac7b
@ -116,7 +116,11 @@ const AccountsItemTitle = ({
|
||||
className="sso-badge"
|
||||
label={t("Common:SSO")}
|
||||
color={globalColors.white}
|
||||
backgroundColor={globalColors.mainGreen}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.secondGreen
|
||||
: globalColors.secondGreenDark
|
||||
}
|
||||
fontSize={"9px"}
|
||||
fontWeight={800}
|
||||
noHover
|
||||
@ -135,7 +139,11 @@ const AccountsItemTitle = ({
|
||||
className="ldap-badge"
|
||||
label={t("Common:LDAP")}
|
||||
color={globalColors.white}
|
||||
backgroundColor={globalColors.secondPurple}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.secondPurple
|
||||
: globalColors.secondPurpleDark
|
||||
}
|
||||
fontSize={"9px"}
|
||||
fontWeight={800}
|
||||
noHover
|
||||
|
@ -131,7 +131,11 @@ const Badges = ({
|
||||
className="accounts-badge"
|
||||
label={t("Common:LDAP")}
|
||||
color={globalColors.white}
|
||||
backgroundColor={globalColors.secondPurple}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.secondPurple
|
||||
: globalColors.secondPurpleDark
|
||||
}
|
||||
fontSize={"9px"}
|
||||
fontWeight={800}
|
||||
noHover
|
||||
@ -144,7 +148,11 @@ const Badges = ({
|
||||
className="accounts-badge"
|
||||
label={t("SSO")}
|
||||
color={globalColors.white}
|
||||
backgroundColor={globalColors.mainGreen}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.secondGreen
|
||||
: globalColors.secondGreenDark
|
||||
}
|
||||
fontSize={"9px"}
|
||||
fontWeight={800}
|
||||
noHover
|
||||
@ -156,7 +164,11 @@ const Badges = ({
|
||||
<StyledPaidBadge
|
||||
className="paid-badge accounts-badge"
|
||||
label={t("Paid")}
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
fontSize={"9px"}
|
||||
fontWeight={800}
|
||||
lineHeight={"13px"}
|
||||
|
@ -395,7 +395,11 @@ const SectionHeaderContent = (props) => {
|
||||
<div className="header">{translatedHeader}</div>
|
||||
{isNeedPaidIcon ? (
|
||||
<Badge
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
label={t("Common:Paid")}
|
||||
fontWeight="700"
|
||||
className="settings-section_badge"
|
||||
|
@ -68,7 +68,11 @@ const CommonWhiteLabel = ({
|
||||
{!isSettingPaid && (
|
||||
<Badge
|
||||
className="paid-badge"
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
label={t("Common:Paid")}
|
||||
isPaidBadge={true}
|
||||
/>
|
||||
|
@ -289,7 +289,11 @@ const WhiteLabel = (props) => {
|
||||
<Badge
|
||||
className="paid-badge"
|
||||
fontWeight="700"
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
label={t("Common:Paid")}
|
||||
isPaidBadge={true}
|
||||
/>
|
||||
|
@ -291,7 +291,11 @@ const DNSSettings = (props) => {
|
||||
<Badge
|
||||
className="paid-badge"
|
||||
fontWeight="700"
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
label={t("Common:Paid")}
|
||||
isPaidBadge={true}
|
||||
/>
|
||||
|
@ -506,7 +506,11 @@ class AutomaticBackup extends React.PureComponent {
|
||||
</Text>
|
||||
{!isEnableAuto && (
|
||||
<Badge
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
label={t("Common:Paid")}
|
||||
fontWeight="700"
|
||||
className="auto-backup_badge"
|
||||
|
@ -93,7 +93,11 @@ const ToggleAutoSync = ({
|
||||
</Text>
|
||||
{!isLdapAvailable && (
|
||||
<Badge
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
label={t("Common:Paid")}
|
||||
className="toggle-caption_title_badge"
|
||||
isPaidBadge={true}
|
||||
|
@ -87,7 +87,11 @@ const ToggleLDAP = ({
|
||||
</Text>
|
||||
{!isLdapAvailable && (
|
||||
<Badge
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
label={t("Common:Paid")}
|
||||
className="toggle-caption_title_badge"
|
||||
isPaidBadge={true}
|
||||
|
@ -97,7 +97,11 @@ const ToggleSSO = ({ enableSso, ssoToggle, isSSOAvailable }) => {
|
||||
</Text>
|
||||
{!isSSOAvailable && (
|
||||
<Badge
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
label={t("Common:Paid")}
|
||||
fontWeight="700"
|
||||
className="toggle-caption_title_badge"
|
||||
|
@ -295,7 +295,11 @@ class ThirdPartyServices extends React.Component {
|
||||
</Text>
|
||||
<Badge
|
||||
className="paid-badge"
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
fontWeight="700"
|
||||
label={t("Common:Paid")}
|
||||
isPaidBadge={true}
|
||||
|
@ -319,7 +319,11 @@ const HistoryMainContent = (props) => {
|
||||
<Badge
|
||||
className="paid-badge"
|
||||
fontWeight="700"
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
label={t("Common:Paid")}
|
||||
isPaidBadge={true}
|
||||
/>
|
||||
|
@ -69,7 +69,11 @@ const QuotasComponent = (props) => {
|
||||
|
||||
{!isStatisticsAvailable && (
|
||||
<Badge
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
label={t("Common:Paid")}
|
||||
className="paid-badge"
|
||||
isPaidBadge
|
||||
|
@ -92,7 +92,11 @@ const StatisticsComponent = (props) => {
|
||||
</StyledMainTitle>
|
||||
{!isStatisticsAvailable && (
|
||||
<Badge
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
label={t("Common:Paid")}
|
||||
className="paid-badge"
|
||||
isPaidBadge
|
||||
|
@ -110,7 +110,11 @@ const MobileCategoryWrapper = (props) => {
|
||||
</Link>
|
||||
{withPaidBadge && (
|
||||
<Badge
|
||||
backgroundColor={globalColors.favoritesStatus}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.favoritesStatus
|
||||
: globalColors.favoriteStatusDark
|
||||
}
|
||||
label={badgeLabel}
|
||||
isPaidBadge={true}
|
||||
className="paid-badge"
|
||||
|
@ -229,7 +229,11 @@ const MainProfile = (props) => {
|
||||
className="sso-badge"
|
||||
label={t("Common:SSO")}
|
||||
color={globalColors.white}
|
||||
backgroundColor={globalColors.mainGreen}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.secondGreen
|
||||
: globalColors.secondGreenDark
|
||||
}
|
||||
fontSize={"9px"}
|
||||
fontWeight={800}
|
||||
noHover
|
||||
@ -243,7 +247,11 @@ const MainProfile = (props) => {
|
||||
className="sso-badge"
|
||||
label={t("Common:LDAP")}
|
||||
color={globalColors.white}
|
||||
backgroundColor={globalColors.secondPurple}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.secondPurple
|
||||
: globalColors.secondPurpleDark
|
||||
}
|
||||
fontSize={"9px"}
|
||||
fontWeight={800}
|
||||
noHover
|
||||
@ -269,7 +277,11 @@ const MainProfile = (props) => {
|
||||
className="sso-badge"
|
||||
label={t("Common:SSO")}
|
||||
color={globalColors.white}
|
||||
backgroundColor={globalColors.mainGreen}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.secondGreen
|
||||
: globalColors.secondGreenDark
|
||||
}
|
||||
fontSize={"9px"}
|
||||
fontWeight={800}
|
||||
noHover
|
||||
@ -288,7 +300,11 @@ const MainProfile = (props) => {
|
||||
className="ldap-badge"
|
||||
label={t("Common:LDAP")}
|
||||
color={globalColors.white}
|
||||
backgroundColor={globalColors.secondPurple}
|
||||
backgroundColor={
|
||||
theme.isBase
|
||||
? globalColors.secondPurple
|
||||
: globalColors.secondPurpleDark
|
||||
}
|
||||
fontSize={"9px"}
|
||||
fontWeight={800}
|
||||
noHover
|
||||
|
Loading…
Reference in New Issue
Block a user