Skip to content

Commit

Permalink
Update RuleComponent.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondyr authored Oct 10, 2024
1 parent 62415f9 commit b33af47
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ class Rule extends React.Component<IRuleComponentProps, IRuleComponentState> {
);
}

private renderTrigger(): React.ReactNode {
private renderTrigger(): React.ReactElement {
return !this.props.connectionId ? (
<>
<span>{this.props.t('right_menu.rules_calculations')}</span>
<StudioModal.Trigger
aria-label={this.props.t('right_menu.rules_calculations_add_alt')}
icon={<PlusIcon />}
variant='tertiary'
></StudioModal.Trigger>
/>
</>
) : (
<StudioModal.Trigger variant='tertiary' icon={<CogIcon />}>
Expand Down

0 comments on commit b33af47

Please sign in to comment.