fix: rename getCustomStatusConfig to getCustomStatusBadgeConfig in EnterpriseDetailPageProvider
This commit is contained in:
@@ -29,7 +29,7 @@ export function EnterpriseDetailPageProvider<E extends BaseEntity = BaseEntity>(
|
||||
showHighlightDataOnBreadcrumbs = true,
|
||||
highlightDataKey = 'code',
|
||||
statusKey = 'status',
|
||||
getCustomStatusConfig,
|
||||
getCustomStatusBadgeConfig,
|
||||
onDetailLoaded,
|
||||
|
||||
customPageActions,
|
||||
@@ -645,7 +645,7 @@ export function EnterpriseDetailPageProvider<E extends BaseEntity = BaseEntity>(
|
||||
detailData ? (
|
||||
<StatusBadge
|
||||
status={detailData[statusKey as keyof typeof detailData] as string}
|
||||
getCustomConfig={getCustomStatusConfig}
|
||||
getCustomConfig={getCustomStatusBadgeConfig}
|
||||
/>
|
||||
) : undefined
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user