feat(trading): rewards container tweaks (#6037)
This commit is contained in:
parent
e389579537
commit
1fd1013353
@ -3,7 +3,6 @@ import {
|
|||||||
VegaIcon,
|
VegaIcon,
|
||||||
VegaIconNames,
|
VegaIconNames,
|
||||||
TradingInput,
|
TradingInput,
|
||||||
TinyScroll,
|
|
||||||
} from '@vegaprotocol/ui-toolkit';
|
} from '@vegaprotocol/ui-toolkit';
|
||||||
import {
|
import {
|
||||||
type TransferNode,
|
type TransferNode,
|
||||||
@ -120,7 +119,7 @@ export const ActiveRewards = ({ currentEpoch }: { currentEpoch: number }) => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{/** CARDS */}
|
{/** CARDS */}
|
||||||
<TinyScroll className="grid gap-x-8 gap-y-10 h-fit grid-cols-[repeat(auto-fill,_minmax(230px,_1fr))] md:grid-cols-[repeat(auto-fill,_minmax(230px,_1fr))] lg:grid-cols-[repeat(auto-fill,_minmax(320px,_1fr))] xl:grid-cols-[repeat(auto-fill,_minmax(335px,_1fr))] max-h-[40rem] overflow-auto pr-2">
|
<div className="grid gap-x-8 gap-y-10 h-fit grid-cols-[repeat(auto-fill,_minmax(230px,_1fr))] md:grid-cols-[repeat(auto-fill,_minmax(230px,_1fr))] lg:grid-cols-[repeat(auto-fill,_minmax(320px,_1fr))] xl:grid-cols-[repeat(auto-fill,_minmax(335px,_1fr))] pr-2">
|
||||||
{data
|
{data
|
||||||
.filter((n) => applyFilter(n, filter))
|
.filter((n) => applyFilter(n, filter))
|
||||||
.map((node, i) => (
|
.map((node, i) => (
|
||||||
@ -131,7 +130,7 @@ export const ActiveRewards = ({ currentEpoch }: { currentEpoch: number }) => {
|
|||||||
requirements={requirements}
|
requirements={requirements}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</TinyScroll>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -246,6 +246,19 @@ export const RewardsContainer = () => {
|
|||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
<div className="grid auto-rows-min grid-cols-6 gap-3">
|
<div className="grid auto-rows-min grid-cols-6 gap-3">
|
||||||
|
<Card
|
||||||
|
title={t('Rewards history')}
|
||||||
|
className="lg:col-span-full hidden md:block"
|
||||||
|
loading={rewardsLoading}
|
||||||
|
noBackgroundOnMobile={true}
|
||||||
|
highlight={true}
|
||||||
|
>
|
||||||
|
<RewardsHistoryContainer
|
||||||
|
epoch={Number(epochData?.epoch.id)}
|
||||||
|
pubKey={pubKey}
|
||||||
|
assets={assetMap}
|
||||||
|
/>
|
||||||
|
</Card>
|
||||||
{pubKey && activityStreakBenefitTiers.tiers?.length > 0 && (
|
{pubKey && activityStreakBenefitTiers.tiers?.length > 0 && (
|
||||||
<Card
|
<Card
|
||||||
title={t('Activity Streak')}
|
title={t('Activity Streak')}
|
||||||
@ -287,18 +300,6 @@ export const RewardsContainer = () => {
|
|||||||
</Card>
|
</Card>
|
||||||
)}
|
)}
|
||||||
<ActiveRewards currentEpoch={Number(epochData?.epoch.id)} />
|
<ActiveRewards currentEpoch={Number(epochData?.epoch.id)} />
|
||||||
<Card
|
|
||||||
title={t('Rewards history')}
|
|
||||||
className="lg:col-span-full hidden md:block"
|
|
||||||
loading={rewardsLoading}
|
|
||||||
noBackgroundOnMobile={true}
|
|
||||||
>
|
|
||||||
<RewardsHistoryContainer
|
|
||||||
epoch={Number(epochData?.epoch.id)}
|
|
||||||
pubKey={pubKey}
|
|
||||||
assets={assetMap}
|
|
||||||
/>
|
|
||||||
</Card>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user