diff --git a/smart-frontend/app/src/components/pages/RulesPage/RulesDialogs/RuleCreateDialog.tsx b/smart-frontend/app/src/components/pages/RulesPage/RulesDialogs/RuleCreateDialog.tsx index 2833b736cb..074b9f3865 100644 --- a/smart-frontend/app/src/components/pages/RulesPage/RulesDialogs/RuleCreateDialog.tsx +++ b/smart-frontend/app/src/components/pages/RulesPage/RulesDialogs/RuleCreateDialog.tsx @@ -47,7 +47,7 @@ const RuleCreateDialog: React.FC = () => { dispatch(createRuleWithUpdate(ruleText)); }; - const keyPress = (e: React.KeyboardEvent) => { + const handleKeyDown = (e: React.KeyboardEvent) => { if (e.shiftKey && e.key === 'Enter') { e.preventDefault(); handleCreate(); @@ -62,7 +62,12 @@ const RuleCreateDialog: React.FC = () => { actionButtonLabel="Create" onAction={handleCreate} > - + {isActionInProgress && } );