Skip to content

Commit

Permalink
Updating icon calls
Browse files Browse the repository at this point in the history
  • Loading branch information
skduncan committed Sep 12, 2024
1 parent 1447520 commit d0c287b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 10 additions & 2 deletions playbook/app/pb_kits/playbook/pb_button/_button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,19 @@ const Button = (props: ButtonPropTypes): React.ReactElement => {
const content = (
<span className="pb_button_content">
{icon && !iconRight && (
<i className={`pb_icon_kit far fa-${icon} fa-fw button_with_icon`} />
<i className={`pb_icon_kit button_with_icon`}>
<Icon
icon={icon}
/>
</i>
)}
<span>{text || children}</span>
{icon && iconRight && (
<i className={`pb_icon_kit far fa-${icon} fa-fw button_with_icon_right`} />
<i className={`pb_icon_kit button_with_icon_right`}>
<Icon
icon={icon}
/>
</i>
)}
</span>
)
Expand Down
2 changes: 0 additions & 2 deletions playbook/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ const Tooltip = forwardRef((props: TooltipProps, ref: ForwardedRef<unknown>): Re
const [open, setOpen] = useState(false)
const arrowRef = useRef(null)

const paperPlane = getAllIcons()["paperPlane"].icon as unknown as { [key: string]: SVGElement }

const {
context,
middlewareData: { arrow: { x: arrowX, y: arrowY } = {}, },
Expand Down

0 comments on commit d0c287b

Please sign in to comment.