diff --git a/src/lib/components/Footer.svelte b/src/lib/components/Footer.svelte index 6353b18e..4464a240 100644 --- a/src/lib/components/Footer.svelte +++ b/src/lib/components/Footer.svelte @@ -135,7 +135,7 @@ Stock Analysis ProPricing
  • diff --git a/src/routes/potus-tracker/+page.svelte b/src/routes/potus-tracker/+page.svelte index 979d4ccf..0bd46fe5 100644 --- a/src/routes/potus-tracker/+page.svelte +++ b/src/routes/potus-tracker/+page.svelte @@ -28,7 +28,7 @@ export let data; let rawData = data?.getData?.history || []; - let billData = data?.getData?.billData || []; + let executiveOrders = data?.getData?.executiveOrders || []; const groupedByDate = rawData?.reduce((acc, item) => { const dateKey = new Intl.DateTimeFormat("en-US", { @@ -44,6 +44,7 @@ let modalTitle = "n/a"; let modalDescription = "n/a"; + let modalLink = "#"; const tabs = [ { @@ -371,18 +372,30 @@ Latest Legislations
    - {#each billData as item} + {#each executiveOrders as item}
    - {item?.badge} + {item?.sentiment} {item?.time !== null ? item?.time : ""} + >{#if item?.date !== null} + {new Date(item?.date).toLocaleDateString("en-US", { + year: "numeric", + month: "short", + day: "numeric", + })} + {:else} + "" + {/if} +
    @@ -403,6 +416,7 @@ on:click={() => { modalTitle = item?.title; modalDescription = item?.description; + modalLink = item?.link; }} for="readMore" class="cursor-pointer bg-blue-500 sm:hover:bg-blue-600 ease-out transition duration-100 text-white px-3 py-1.5 rounded text-sm" @@ -434,14 +448,23 @@ class="modal-box rounded-md border border-gray-600 w-full bg-secondary flex flex-col items-center" >
    -
    +

    {modalTitle}

    {@html modalDescription}
    -