Skip to content

Commit

Permalink
fix: button style (#4884)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Dec 3, 2024
1 parent fbd1a13 commit 679acdd
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions frontend/web/components/base/forms/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,16 @@ export const Button: FC<ButtonType> = ({
href={hasPlan ? href : Constants.getUpgradeUrl()}
rel='noreferrer'
>
{!!iconLeft && !!hasPlan && (
<Icon
fill={iconLeftColour ? Constants.colours[iconLeftColour] : undefined}
className='me-2'
name={iconLeft}
width={iconSize}
/>
)}
<div className='d-flex align-items-center gap-2'>
<div className='d-flex align-items-center justify-content-center gap-2'>
{!!iconLeft && !!hasPlan && (
<Icon
fill={
iconLeftColour ? Constants.colours[iconLeftColour] : undefined
}
name={iconLeft}
width={iconSize}
/>
)}
{children}
{!hasPlan && <PlanBasedBanner feature={feature} theme={'badge'} />}
</div>
Expand Down

0 comments on commit 679acdd

Please sign in to comment.