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
@@ -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}
/>