Implement workflow loops default state (#14297)
https://github.com/user-attachments/assets/9176ae58-f253-469c-b5b6-98d77909db53
This commit is contained in:
committed by
GitHub
parent
4d6ef9bc34
commit
7b23f5ac91
+3
-3
@@ -1,9 +1,9 @@
|
||||
import { type WorkflowActionType } from '@/workflow/types/Workflow';
|
||||
import { getActionHeaderTypeOrThrow } from '@/workflow/workflow-steps/workflow-actions/utils/getActionHeaderTypeOrThrow';
|
||||
import { useLingui } from '@lingui/react';
|
||||
import { useLingui } from '@lingui/react/macro';
|
||||
|
||||
export const useActionHeaderTypeOrThrow = (actionType: WorkflowActionType) => {
|
||||
const { _ } = useLingui();
|
||||
const { i18n } = useLingui();
|
||||
|
||||
return _(getActionHeaderTypeOrThrow(actionType));
|
||||
return i18n._(getActionHeaderTypeOrThrow(actionType));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user