refactor: replace const with let
This commit is contained in:
parent
ba15468eba
commit
090b541056
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
const { date }: { date: Date } = $props();
|
let { date }: { date: Date } = $props();
|
||||||
|
|
||||||
let currentDate = $state(Date.now());
|
let currentDate = $state(Date.now());
|
||||||
let difference = $derived(currentDate / 1000 - date.getTime() / 1000);
|
let difference = $derived(currentDate / 1000 - date.getTime() / 1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user