Skip to content

Commit b4879f6

Browse files
committed
chore: change default behavior
1 parent a28efb7 commit b4879f6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/lib/PerformanceConsent.svelte

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
if (timeout > 0) {
4141
requestAnimationFrame(animate);
4242
} else {
43-
console.log('Done?');
43+
console.log('Performance monitoring consent declined');
44+
declineConsent();
4445
}
4546
};
4647
animate();
@@ -74,21 +75,18 @@
7475
>
7576
<Icon src={Check} class="size-6 stroke-4" />
7677
Accept
77-
<div class="absolute bottom-0 left-0 h-1 w-full bg-green-300">
78-
<div
79-
class="h-full bg-green-900"
80-
style:width="{100 - (timeout / TIMEOUT_MAX) * 100}%"
81-
></div>
82-
</div>
8378
</button>
8479
<button
85-
class="flex h-12 items-center gap-2 bg-red-400 px-4 py-1 text-lg text-red-950 hover:bg-red-600"
80+
class="relative flex h-12 items-center gap-2 bg-red-400 px-4 py-1 text-lg text-red-950 hover:bg-red-600"
8681
onclick={() => declineConsent()}
8782
>
8883
<div class="relative">
8984
<Icon src={X} class="absolute top-1/2 left-1/2 h-4 w-4 -translate-1/2" />
9085
</div>
9186
Decline
87+
<div class="absolute bottom-0 left-0 h-1 w-full bg-red-300">
88+
<div class="h-full bg-red-900" style:width="{100 - (timeout / TIMEOUT_MAX) * 100}%"></div>
89+
</div>
9290
</button>
9391
</div>
9492
</div>

0 commit comments

Comments
 (0)