mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-15 16:31:03 +00:00
Never update Icons
This commit is contained in:
@@ -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