mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
c131766361
commit
2d87114f9e
1 file changed
+3
-3
@@ -164,7 +164,7 @@ interface Dependencies {
|
||||
logger: Logger;
|
||||
}
|
||||
|
||||
const RawIcon = withTooltip((props: IconProps & Dependencies) => {
|
||||
const RawIcon = (props: IconProps & Dependencies) => {
|
||||
const ref = createRef<HTMLAnchorElement>();
|
||||
|
||||
const {
|
||||
@@ -271,7 +271,7 @@ const RawIcon = withTooltip((props: IconProps & Dependencies) => {
|
||||
}
|
||||
|
||||
return <i {...iconProps} ref={ref} />;
|
||||
});
|
||||
};
|
||||
|
||||
const InjectedIcon = withInjectables<Dependencies, IconProps>(RawIcon, {
|
||||
getProps: (di, props) => ({
|
||||
@@ -280,4 +280,4 @@ const InjectedIcon = withInjectables<Dependencies, IconProps>(RawIcon, {
|
||||
}),
|
||||
});
|
||||
|
||||
export const Icon = Object.assign(InjectedIcon, { isSvg });
|
||||
export const Icon = Object.assign(withTooltip(InjectedIcon), { isSvg });
|
||||
Reference in new issue
Block a user