MINOR: fix the success theme color and remove the beta tag custom theme (#21302)

* fix the success theme color and remove the beta tag custom theme

* fix the test

(cherry picked from commit 7a6465c038b34fd3544ec3070d4171b02c8de8f0)
This commit is contained in:
Ashish Gupta 2025-05-20 14:40:39 +05:30
parent e1b7e93fe0
commit 2cfb82fa56
3 changed files with 3 additions and 15 deletions

View File

@ -13,7 +13,7 @@
export const DEFAULT_THEME = {
primaryColor: '#1570ef',
infoColor: '#84caff',
successColor: '#6ce9a6',
warningColor: '#fec84b',
successColor: '#039855',
warningColor: '#DC6803',
errorColor: '#D92D20',
};

View File

@ -56,7 +56,6 @@ describe('Test appearance config page', () => {
expect(screen.getByTestId('customFaviconUrlPath')).toBeInTheDocument();
expect(screen.getByText('label.custom-theme')).toBeInTheDocument();
expect(screen.getByTestId('custom-theme-beta-tag')).toBeInTheDocument();
expect(screen.getByTestId('primaryColor-color-input')).toBeInTheDocument();
expect(screen.getByTestId('errorColor-color-input')).toBeInTheDocument();

View File

@ -13,7 +13,6 @@
import Icon from '@ant-design/icons';
import {
Badge,
Button,
Card,
Col,
@ -364,17 +363,7 @@ const AppearanceConfigSettingsPage = () => {
<Card
className="white-label-config-card"
title={
<div className="d-flex items-center">
<Typography.Text>{t('label.custom-theme')}</Typography.Text>
<Badge
className="custom-theme-beta-tag"
count={t('label.beta')}
data-testid="custom-theme-beta-tag"
offset={[10, 0]}
size="small"
/>
</div>
<Typography.Text>{t('label.custom-theme')}</Typography.Text>
}>
<Row className="w-full" gutter={[16, 16]}>
{themeFormFields.map((field) => {