mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-12-01 18:10:23 +00:00
Never update Icons
This commit is contained in:
1 parent
7ea9c8f7fc
commit
66bae3ed36
1 file changed
+12
-2
@@ -8,6 +8,16 @@ export interface Props {
|
|||||||
className?: string,
|
className?: string,
|
||||||
};
|
};
|
||||||
|
|
||||||
export function Icon(props: Props) {
|
export class Icon extends React.Component<{}, Props> {
|
||||||
return <ReactSVG title={props.alt} className={`Icon ${ props.className || '' }`} path={props.src} />;
|
public props: Props;
|
||||||
|
|
||||||
|
public shouldComponentUpdate() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public render() {
|
||||||
|
const { alt, className, src } = this.props;
|
||||||
|
|
||||||
|
return <ReactSVG title={alt} className={`Icon ${ className || '' }`} path={src} />;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user