Skip to content

Commit

Permalink
fix: feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Another-DevX committed Jan 19, 2024
1 parent 665b53c commit 79dd73b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 118 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ const rewardsData = [
];
const { upToLargeBreakpoint } = useBreakpoints();
const hasCurrentAllocation = computed(() => {
return parseInt(currentAllocation.value as string) > 0;
});
</script>

<template>
Expand All @@ -94,7 +98,7 @@ const { upToLargeBreakpoint } = useBreakpoints();
<BalTable
:columns="columns"
sticky="both"
:data="rewardsData"
:data="hasCurrentAllocation ? rewardsData : []"
:isLoading="isLoading"
skeletonClass="h-24"
:square="upToLargeBreakpoint"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,120 +99,4 @@ onMounted(() => {
@success="handleStakeSuccess"
/>
</div>
</template>

<!--
<template>
<BalCard
shadow="lg"
:square="upToLargeBreakpoint"
:noBorder="upToLargeBreakpoint"
noPad
exposeOverflow
>
<BalTable
:columns="columns"
:data="data?.pools || []"
noResultsLabel="No pools"
:isLoading="isLoading"
skeletonClass="pools-table-loading-height"
sticky="both"
:square="upToLargeBreakpoint"
isOnlyDescSort
>
<template #iconColumnHeader>
<div class="flex items-center">
<img
v-if="darkMode"
:src="TokensWhite"
alt="token"
loading="lazy"
width="24"
height="15"
/>
<img
v-else
:src="TokensBlack"
alt="token"
loading="lazy"
width="24"
height="15"
/>
</div>
</template>
<template #iconColumnCell="pool">
<div v-if="!isLoading" class="py-4 px-6" :data-testid="pool?.id">
<BalAssetSet
:addresses="iconAddresses(pool)"
:width="100"
:size="isMobile ? 28 : 32"
/>
</div>
</template>
<template #poolNameCell="pool">
<div v-if="!isLoading" class="flex items-center py-4 px-6">
<div v-if="poolMetadata(pool.id)?.name" class="pr-2 text-left">
{{ poolMetadata(pool.id)?.name }}
</div>
<div v-else>
<TokenPills
:tokens="orderedPoolTokens(pool, pool.tokens)"
:isStablePool="isStableLike(pool.poolType)"
/>
</div>
<PoolsTableExtraInfo :pool="pool" />
</div>
</template>
<template #aprCell="pool">
<div
:key="columnStates.aprs"
:class="[
'flex justify-end py-4 px-6 -mt-1 font-numeric text-right',
{
'text-gray-300 dark:text-gray-600 line-through': isLBP(
pool.poolType
),
},
]"
>
<span v-if="!pool?.apr || shouldHideAprs(pool.id)">-</span>
<template v-else>
{{ aprLabelFor(pool) }}
<BalTooltip
v-if="isLBP(pool.poolType)"
width="36"
:text="$t('lbpAprTooltip')"
iconSize="sm"
iconClass="ml-1"
/>
<APRTooltip v-else-if="pool?.apr" :pool="pool" />
</template>
</div>
</template>
<template #actionsCell="pool">
<PoolsTableActionSelector
v-if="defaultPoolActions"
:defaultPoolActions="defaultPoolActions"
:pool="pool"
:showPokeAction="false"
:showMigrateGaugeAction="false"
@click:add="addLiquidity(pool.id)"
@click:remove="removeLiquidity(pool.id)"
@click:unstake="pool => emit('triggerUnstake', pool)"
@click:stake="pool => emit('triggerStake', pool)"
@click:vote="emit('triggerVote')"
@click:migrate-gauge="goToPoolPage(pool.id)"
@click:poke="pool => emit('triggerCheckpoint', pool)"
/>
<PoolsTableActionsCell
v-else
:pool="pool"
:poolsType="poolsType"
@click:stake="pool => emit('triggerStake', pool)"
@click:unstake="pool => emit('triggerUnstake', pool)"
@click:migrate="pool => navigateToPoolMigration(pool)"
/>
</template>
</BalTable>
</BalCard>
</template> -->
</template>

0 comments on commit 79dd73b

Please sign in to comment.