diff --git a/src/lib/components/BullBearSay.svelte b/src/lib/components/BullBearSay.svelte index be3a8282..ae4d25ff 100644 --- a/src/lib/components/BullBearSay.svelte +++ b/src/lib/components/BullBearSay.svelte @@ -72,6 +72,7 @@ $: { + {#if data?.user?.tier === 'Pro'}
@@ -92,7 +93,6 @@ $: {
- {#if data?.user?.tier === 'Pro'} @@ -112,7 +112,7 @@ $: { {:else} -
+
Unlock content with Pro Subscription
diff --git a/src/lib/components/Enterprise.svelte b/src/lib/components/Enterprise.svelte index 110ba395..30643de2 100644 --- a/src/lib/components/Enterprise.svelte +++ b/src/lib/components/Enterprise.svelte @@ -3,9 +3,11 @@ import { displayCompanyName, stockTicker, screenWidth, userRegion, getCache, setCache} from '$lib/store'; import InfoModal from '$lib/components/InfoModal.svelte'; import { Chart } from 'svelte-echarts' - import { abbreviateNumber } from "$lib/utils"; import Lazy from 'svelte-lazy'; + + export let data; + let isLoaded = false; const usRegion = ['cle1','iad1','pdx1','sfo1']; @@ -190,6 +192,7 @@ $: { />
+ {#if data?.user?.tier === 'Pro'} {#if isLoaded} {#if rawData?.length !== 0}
@@ -254,6 +257,13 @@ $: {
{/if} + + {:else} +
+ + Unlock content with Pro Subscription +
+ {/if} diff --git a/src/lib/components/RetailVolume.svelte b/src/lib/components/RetailVolume.svelte index 31e5d95a..df476d0f 100644 --- a/src/lib/components/RetailVolume.svelte +++ b/src/lib/components/RetailVolume.svelte @@ -6,6 +6,8 @@ import { abbreviateNumber } from "$lib/utils"; import Lazy from 'svelte-lazy'; + export let data; + let isLoaded = false; const usRegion = ['cle1','iad1','pdx1','sfo1']; @@ -223,6 +225,7 @@ $: { /> + {#if data?.user?.tier === 'Pro'} {#if isLoaded} {#if rawData?.length !== 0} @@ -248,7 +251,7 @@ $: { {/if} trend. - +
@@ -305,7 +308,14 @@ $: {
- + + {/if} + + {:else} +
+ + Unlock content with Pro Subscription +
{/if} diff --git a/src/lib/components/ShareStatistics.svelte b/src/lib/components/ShareStatistics.svelte index 7e610e6c..619f2cb4 100644 --- a/src/lib/components/ShareStatistics.svelte +++ b/src/lib/components/ShareStatistics.svelte @@ -6,6 +6,9 @@ import { abbreviateNumber } from "$lib/utils"; import Lazy from 'svelte-lazy'; + + export let data; + let isLoaded = false; const usRegion = ['cle1','iad1','pdx1','sfo1']; @@ -168,6 +171,7 @@ $: { /> + {#if data?.user?.tier === 'Pro'} {#if isLoaded} {#if Object?.keys(rawData)?.length !== 0} @@ -273,6 +277,13 @@ $: { {/if} + + {:else} +
+ + Unlock content with Pro Subscription +
+ {/if} diff --git a/src/lib/components/WIIM.svelte b/src/lib/components/WIIM.svelte index 9310e91f..88f45c4a 100644 --- a/src/lib/components/WIIM.svelte +++ b/src/lib/components/WIIM.svelte @@ -53,7 +53,8 @@ $: { id={"whyPriceMovedInfo"} /> - + + {#if data?.user?.tier === 'Pro'} {#if wiim?.length !== 0}
{#each (showFullHistory ? wiim : wiim?.slice(0,2)) as item, index} @@ -125,14 +126,15 @@ $: { {/if} - - {:else} -

- No data available - -

{/if} + + {:else} +
+ + Unlock content with Pro Subscription +
+ {/if} diff --git a/src/routes/etf/[tickerID]/+page.svelte b/src/routes/etf/[tickerID]/+page.svelte index 7fc5fe32..8f8fc70c 100644 --- a/src/routes/etf/[tickerID]/+page.svelte +++ b/src/routes/etf/[tickerID]/+page.svelte @@ -1337,7 +1337,7 @@ async function initializePrice() {
{#await import('$lib/components/RetailVolume.svelte') then {default: Comp}} - + {/await}
diff --git a/src/routes/stocks/[tickerID]/+page.svelte b/src/routes/stocks/[tickerID]/+page.svelte index bc38f311..e68a6251 100644 --- a/src/routes/stocks/[tickerID]/+page.svelte +++ b/src/routes/stocks/[tickerID]/+page.svelte @@ -1342,7 +1342,7 @@ function changeChartType() {
{#await import('$lib/components/RetailVolume.svelte') then {default: Comp}} - + {/await}
@@ -1351,7 +1351,7 @@ function changeChartType() {
{#await import('$lib/components/ShareStatistics.svelte') then {default: Comp}} - + {/await}