ui fix
This commit is contained in:
parent
7aca116da6
commit
5b26ad5672
@ -1,4 +1,4 @@
|
|||||||
export const load = async ({ locals }) => {
|
export const load = async ({ locals, setHeaders }) => {
|
||||||
const getAllHedgeFunds = async () => {
|
const getAllHedgeFunds = async () => {
|
||||||
const { apiURL, apiKey } = locals;
|
const { apiURL, apiKey } = locals;
|
||||||
const response = await fetch(apiURL + "/all-hedge-funds", {
|
const response = await fetch(apiURL + "/all-hedge-funds", {
|
||||||
@ -10,6 +10,7 @@ export const load = async ({ locals }) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const output = await response.json();
|
const output = await response.json();
|
||||||
|
setHeaders({ "cache-control": "public, max-age=3000" });
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -355,9 +355,11 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td
|
<td
|
||||||
class="{item?.changeInSharesNumberPercentage >= 0
|
class="{item?.changeInSharesNumberPercentage > 0
|
||||||
? "before:content-['+'] text-[#00FC50]"
|
? "before:content-['+'] text-[#00FC50]"
|
||||||
: 'text-[#FF2F1F]'} text-end font-medium text-sm sm:text-[1rem] whitespace-nowrap"
|
: item?.changeInSharesNumberPercentage < 0
|
||||||
|
? 'text-[#FF2F1F]'
|
||||||
|
: 'text-white'} text-end font-medium text-sm sm:text-[1rem] whitespace-nowrap"
|
||||||
>
|
>
|
||||||
{item?.changeInSharesNumberPercentage !== null
|
{item?.changeInSharesNumberPercentage !== null
|
||||||
? abbreviateNumber(
|
? abbreviateNumber(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user