refactor: standardize theme colors, update UI components, and refine auth redirection logic

This commit is contained in:
Firman Ramdhani
2026-07-31 13:32:06 +07:00
parent 0c4450ae25
commit 90e1bc2ea0
4 changed files with 8 additions and 9 deletions
@@ -107,14 +107,15 @@ export enum STATUS_COLOR {
// INACTIVE = '#6A252A',
// DEACTIVATED = '#792A2C',
INACTIVE = '#B52B24',
DEACTIVATED = '#B52B24',
INACTIVE = '#BC1913',
DEACTIVATED = '#BC1913',
CLOSE = '#883230',
CLOSED = '#973C35',
// ACTIVE = '#518F00',
ACTIVE = '#54BE05',
ACTIVATED = '#539B01',
// ACTIVATED = '#539B01',
ACTIVE = '#54B304',
ACTIVATED = '#54B304',
APPROVED = '#54A702',
PROCESSED = '#54B304',
COMPLETED = '#54BE05',
@@ -678,7 +678,7 @@ export function EnterpriseDataTable<E extends BaseEntity>(props: EnterpriseDataT
field: 'status' as any,
headerName: t('common:fields.status'),
cellRenderer: ({ value }: any) => <StatusBadge status={value} size="sm" radius={'lg'} variant="filled" />,
cellRenderer: ({ value }: any) => <StatusBadge status={value} size="md" variant="light" />,
};
const prefixColumn: ColDef<E>[] = [
@@ -698,8 +698,7 @@ export function EnterpriseDetailPageProvider<E extends BaseEntity = BaseEntity>(
badges={
detailData ? (
<StatusBadge
radius={'lg'}
variant="filled"
variant="light"
status={detailData[statusKey as keyof typeof detailData] as string}
getCustomConfig={getCustomStatusBadgeConfig}
/>
@@ -534,8 +534,7 @@ export function EnterpriseFormPageProvider<E extends BaseEntity = BaseEntity>(pr
badges={
detailData && formPageType === 'EDIT' ? (
<StatusBadge
radius={'lg'}
variant="filled"
variant="light"
status={detailData[statusKey as keyof typeof detailData] as string}
getCustomConfig={getCustomStatusBadgeConfig}
/>