ui fixes
This commit is contained in:
parent
0bb2afb4a7
commit
87c0f355a2
@ -813,23 +813,25 @@ function handleTypeOfTrade(state:string)
|
|||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
{/if}
|
{/if}
|
||||||
<li class="cursor-pointer flex flex-col items-center">
|
{#if Object?.keys(data?.getAnalystRating ?? {})?.length > 0}
|
||||||
<a
|
<li class="cursor-pointer flex flex-col items-center">
|
||||||
href={`/stocks/${$stockTicker}/forecast`}
|
<a
|
||||||
on:click={() => changeSection("forecast")}
|
href={`/stocks/${$stockTicker}/forecast`}
|
||||||
class="px-3 text-sm sm:text-[1rem] font-medium text-gray-400 sm:hover:text-white {displaySection ===
|
on:click={() => changeSection("forecast")}
|
||||||
'forecast'
|
class="px-3 text-sm sm:text-[1rem] font-medium text-gray-400 sm:hover:text-white {displaySection ===
|
||||||
? 'text-white '
|
'forecast'
|
||||||
: 'bg-[#09090B]'}"
|
? 'text-white '
|
||||||
>
|
: 'bg-[#09090B]'}"
|
||||||
Forecast
|
>
|
||||||
</a>
|
Forecast
|
||||||
<div
|
</a>
|
||||||
class="{displaySection === 'forecast'
|
<div
|
||||||
? 'bg-[#75D377]'
|
class="{displaySection === 'forecast'
|
||||||
: 'bg-[#09090B]'} mt-1 h-[3px] rounded-full w-[2.5rem]"
|
? 'bg-[#75D377]'
|
||||||
/>
|
: 'bg-[#09090B]'} mt-1 h-[3px] rounded-full w-[2.5rem]"
|
||||||
</li>
|
/>
|
||||||
|
</li>
|
||||||
|
{/if}
|
||||||
<li class="cursor-pointer flex flex-col items-center">
|
<li class="cursor-pointer flex flex-col items-center">
|
||||||
<a
|
<a
|
||||||
href={`/stocks/${$stockTicker}/options`}
|
href={`/stocks/${$stockTicker}/options`}
|
||||||
|
|||||||
@ -48,7 +48,7 @@
|
|||||||
const highChange = calculatePriceChange(highPriceTarget);
|
const highChange = calculatePriceChange(highPriceTarget);
|
||||||
const rawAnalystList = data?.getAnalystRating?.recommendationList || [];
|
const rawAnalystList = data?.getAnalystRating?.recommendationList || [];
|
||||||
const recommendationList =
|
const recommendationList =
|
||||||
rawAnalystList?.length > 5 ? rawAnalystList?.slice(-6, -1) : rawAnalystList;
|
rawAnalystList?.length > 5 ? rawAnalystList?.slice(-6) : rawAnalystList;
|
||||||
const categories = ["Strong Buy", "Buy", "Hold", "Sell", "Strong Sell"];
|
const categories = ["Strong Buy", "Buy", "Hold", "Sell", "Strong Sell"];
|
||||||
|
|
||||||
function findIndex(data) {
|
function findIndex(data) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user