Fix name
This commit is contained in:
parent
846ac48ff1
commit
103493843d
@ -8,7 +8,7 @@ import '@tp/tp-icon/tp-icon.js';
|
||||
import { LitElement, html, css, svg } from 'lit';
|
||||
import { classMap } from 'lit/directives/class-map.js';
|
||||
|
||||
class EfAvatar extends LitElement {
|
||||
class TpAvatar extends LitElement {
|
||||
static get styles() {
|
||||
return [
|
||||
css`
|
||||
@ -60,7 +60,7 @@ class EfAvatar extends LitElement {
|
||||
|
||||
return html`
|
||||
<div id="avatarImg" class=${classMap({ visible: loaded, hidden: !loaded })}></div>
|
||||
<tp-icon id="placeHolder" .icon=${EfAvatar.defaultAccountIcon} class=${classMap({ visible: !loaded || !hasSrc, hidden: loaded && hasSrc})}></tp-icon>
|
||||
<tp-icon id="placeHolder" .icon=${TpAvatar.defaultAccountIcon} class=${classMap({ visible: !loaded || !hasSrc, hidden: loaded && hasSrc})}></tp-icon>
|
||||
`;
|
||||
}
|
||||
|
||||
@ -125,4 +125,4 @@ class EfAvatar extends LitElement {
|
||||
}
|
||||
}
|
||||
|
||||
window.customElements.define('ef-avatar', EfAvatar);
|
||||
window.customElements.define('tp-avatar', TpAvatar);
|
||||
|
Loading…
Reference in New Issue
Block a user