Skip to content

Commit

Permalink
Style conditionalrendering buttons like they were before
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondyr committed Oct 10, 2024
1 parent 22df924 commit ace95b4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type {
} from 'app-shared/types/RuleConfig';
import type i18next from 'i18next';
import type { FormComponent } from '../../types/FormComponent';
import { PlusIcon, XMarkOctagonFillIcon } from '@studio/icons';
import { CogIcon, PlusIcon, XMarkOctagonFillIcon } from '@studio/icons';
import type { FormContainer } from '../../types/FormContainer';
import { StudioButton, StudioModal } from '@studio/components';
import { withTranslation } from 'react-i18next';
Expand Down Expand Up @@ -296,7 +296,9 @@ class ConditionalRendering extends React.Component<
variant='tertiary'
/>
) : (
<StudioModal.Trigger>{selectedMethod}</StudioModal.Trigger>
<StudioModal.Trigger variant='tertiary' icon={<CogIcon />}>
{selectedMethod}
</StudioModal.Trigger>
)}
<StudioModal.Dialog
ref={this.state.dialogRef}
Expand Down

0 comments on commit ace95b4

Please sign in to comment.