fix: some snags and fixes for games container and oracle profile

This commit is contained in:
Madalina Raicu 2024-02-09 14:42:33 +00:00
parent 354ac43314
commit fb8699870e
No known key found for this signature in database
GPG Key ID: 688B7B31149C1DCD
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,8 @@
import { type TransferNode } from '@vegaprotocol/types';
import { ActiveRewardCard } from '../rewards-container/active-rewards';
import { useT } from '../../lib/use-t';
import { useAssetsMapProvider } from '@vegaprotocol/assets';
import { useMarketsMapProvider } from '@vegaprotocol/markets';
export const GamesContainer = ({
data,
@ -10,6 +12,10 @@ export const GamesContainer = ({
currentEpoch: number;
}) => {
const t = useT();
// Re-load markets and assets in the games container to ensure that the
// the cards are updated (not grayed out) when the user navigates to the games page
useAssetsMapProvider();
useMarketsMapProvider();
if (!data || data.length === 0) {
return (

View File

@ -240,7 +240,7 @@ export const OracleFullProfile = ({
<div className="font-alpha calt dark:text-vega-light-300 text-vega-dark-300 mb-2 grid grid-cols-4 gap-1 uppercase">
<div className="col-span-1">{t('Market')}</div>
<div className="col-span-1">{t('Status')}</div>
<div className="col-span-1">{t('Specifications')}</div>
<div className="col-span-2">{t('Specifications')}</div>
</div>
<div className="max-h-60 overflow-auto">
{oracleMarkets?.map((market) => (