Skip to content

Commit

Permalink
fix(frontend): Defer cookie banner and account ad
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Aug 3, 2024
1 parent ab51129 commit d6c873d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apps/frontend/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<app-navbar></app-navbar>
<router-outlet></router-outlet>
<router-outlet name="modal"></router-outlet>
<app-cookie-banner></app-cookie-banner>
@defer {
<app-cookie-banner></app-cookie-banner>
}
<ngbx-toast-list></ngbx-toast-list>
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h1 class="mb-4">
</ul>
</div>
<div class="col-md-3">
@if (!loggedIn) {
@defer { @if (!loggedIn) {
<div class="card">
<div class="card-body">
<img class="card-img" src="/assets/artwork/account.svg" alt="Account" width="100%">
Expand Down Expand Up @@ -92,7 +92,7 @@ <h5 class="card-title">
</p>
</div>
</div>
}
}}
@if (loggedIn && unclaimed && !participated) {
<div class="alert alert-warning">
<p>
Expand Down

0 comments on commit d6c873d

Please sign in to comment.