@@ -2,9 +2,9 @@ import { React, classNames } from "@common";
22import { t as discordT , intl } from "@common/i18n" ;
33import { Button , Clickable , Text , Tooltip } from "@components" ;
44import { Logger } from "@replugged" ;
5- import { getByProps } from "@webpack" ;
5+ import { getBySource } from "@webpack" ;
66import { t } from "src/renderer/modules/i18n" ;
7- import { openExternal } from "src/renderer/util" ;
7+ import { mapClassNames , openExternal } from "src/renderer/util" ;
88import type { CheckResultSuccess } from "src/types" ;
99import { getSourceLink } from "../settings/pages" ;
1010import { type InstallLinkProps , authorList , checkIsInstalled , getInfo , install } from "./util" ;
@@ -61,12 +61,13 @@ function Link({ className }: { className?: string }): React.ReactElement {
6161}
6262
6363const Icon = React . memo ( ( { className } : { className ?: string } ) : React . ReactElement | null => {
64- const svgMod = getByProps < SvgMod > ( "svgContentRight " ) ;
64+ const svgMod = getBySource < SvgMod > ( "svgContentRight_ " ) ;
6565 if ( ! svgMod ) {
6666 logger . error ( "Failed to get svgMod" ) ;
6767 return null ;
6868 }
69- const { svgContentRight, svgContentLines, svgContentLeft, svgDots, svgTag } = svgMod ;
69+ const { svgContentRight, svgContentLines, svgContentLeft, svgDots, svgTag } =
70+ mapClassNames ( svgMod ) ;
7071
7172 return (
7273 < svg width = "57" height = "40" viewBox = "0 0 57 40" fill = "none" className = { className } >
@@ -119,7 +120,7 @@ const Embed = React.memo(
119120 installClick : ( ) => void ;
120121 } ,
121122 ) : React . ReactElement | null => {
122- const classMod = getByProps < ClassMod > ( "titleRegion " ) ;
123+ const classMod = getBySource < ClassMod > ( "titleRegion_ " ) ;
123124 if ( ! classMod ) {
124125 logger . error ( "Failed to find classMod" ) ;
125126 return null ;
@@ -142,7 +143,7 @@ const Embed = React.memo(
142143 copyLink,
143144 copyLinkIcon,
144145 copied,
145- } = classMod ;
146+ } = mapClassNames ( classMod ) ;
146147
147148 return (
148149 < div className = { wrapper } >
@@ -151,7 +152,7 @@ const Embed = React.memo(
151152 < div className = { barLoader } />
152153 ) : (
153154 < >
154- < Tooltip text = { props . authors } className = "replugged-addon-embed-title-tooltip" >
155+ < Tooltip text = { props . authors } >
155156 < strong className = { classNames ( title , "replugged-addon-embed-title" ) } >
156157 { props . authors }
157158 </ strong >
@@ -210,7 +211,6 @@ const Embed = React.memo(
210211 text = { intl . formatToPlainString ( t . REPLUGGED_ERROR_ALREADY_INSTALLED , {
211212 name : props . name ,
212213 } ) }
213- className = "replugged-addon-embed-button-tooltip"
214214 shouldShow = { props . isInstalled ? undefined : false }
215215 hideOnClick = { false } >
216216 < Button
0 commit comments