diff --git a/apps/admin/src/forms/helpers/addBulkEditNotification.ts b/apps/admin/src/forms/helpers/addBulkEditNotification.ts index 3961d509..12020a53 100644 --- a/apps/admin/src/forms/helpers/addBulkEditNotification.ts +++ b/apps/admin/src/forms/helpers/addBulkEditNotification.ts @@ -1,7 +1,9 @@ import {Variant} from '@myparcel-pdk/common'; +import {KEY_DESCRIPTION} from '../shipmentOptions'; import {type PdkNotification} from '../../types'; import {useNotificationStore} from '../../stores'; import {NotificationCategory} from '../../data'; +import {createLabel} from './createLabel'; const TRANSLATION_KEY = 'bulk_orders_warning'; @@ -11,7 +13,7 @@ export const addBulkEditNotification = (isModal: boolean): void => { notificationStore.add({ id: TRANSLATION_KEY, variant: Variant.Info, - content: `${TRANSLATION_KEY}_description`, + content: createLabel(TRANSLATION_KEY, KEY_DESCRIPTION), category: isModal ? NotificationCategory.Modal : NotificationCategory.General, title: TRANSLATION_KEY, timeout: false, diff --git a/apps/admin/src/forms/helpers/createLabel.ts b/apps/admin/src/forms/helpers/createLabel.ts new file mode 100644 index 00000000..6f397425 --- /dev/null +++ b/apps/admin/src/forms/helpers/createLabel.ts @@ -0,0 +1,3 @@ +export const createLabel =