File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 4
4
computed ,
5
5
input ,
6
6
} from '@angular/core' ;
7
- import { DatePipe } from '@angular/common' ;
7
+ import { DatePipe , NgOptimizedImage } from '@angular/common' ;
8
8
import { CommunityEvent } from '../../../models/community-event.model' ;
9
9
10
10
@Component ( {
@@ -98,14 +98,20 @@ import { CommunityEvent } from '../../../models/community-event.model';
98
98
<div
99
99
class="w-6 h-6 rounded-full p-1 bg-gray-100 flex items-center justify-center"
100
100
>
101
- <img [src]="event().organizer.logo" class="w-6" alt="" />
101
+ <img
102
+ [ngSrc]="event().organizer.logo"
103
+ class="w-6"
104
+ alt=""
105
+ width="24"
106
+ height="24"
107
+ />
102
108
</div>
103
109
<span>{{ event().organizer.name }}</span>
104
110
</a>
105
111
</footer>
106
112
</article>
107
113
` ,
108
- imports : [ DatePipe ] ,
114
+ imports : [ DatePipe , NgOptimizedImage ] ,
109
115
} )
110
116
export class EventCard {
111
117
event = input . required < CommunityEvent > ( ) ;
You can’t perform that action at this time.
0 commit comments