Skip to content

Commit

Permalink
Refactor button import to use updated Button.Looks syntax in Icons co…
Browse files Browse the repository at this point in the history
…mponents
  • Loading branch information
Loukious committed Jan 29, 2025
1 parent 0aef7ef commit 27ea6f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/plugins/questCompleter/components/Icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/

import { Button, ButtonLooks, ButtonWrapperClasses, Tooltip, useEffect, useState } from "@webpack/common";
import { Button, ButtonWrapperClasses, Tooltip, useEffect, useState } from "@webpack/common";


export function QuestIcon({ height = 24, width = 24 }: { height?: number; width?: number; }) {
Expand All @@ -26,7 +26,7 @@ export function IconWithTooltip({ text, icon, onClick, isDisabled }) {
<div style={{ display: "flex" }}>
<Button
aria-label={text}
look={ButtonLooks.BLANK}
look={Button.Looks.BLANK}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
onClick={onClick}
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/soundBoardLogger/components/Icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/

import { Button, ButtonLooks, ButtonWrapperClasses, Tooltip } from "@webpack/common";
import { Button, ButtonWrapperClasses, Tooltip } from "@webpack/common";


// Thanks svgrepo.com for the play and download icons.
Expand Down Expand Up @@ -38,7 +38,7 @@ export function IconWithTooltip({ text, icon, onClick }) {
aria-haspopup="dialog"
aria-label={text}
size=""
look={ButtonLooks.BLANK}
look={Button.Looks.BLANK}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
innerClassName={ButtonWrapperClasses.button}
Expand Down

0 comments on commit 27ea6f2

Please sign in to comment.