fix: some snags and fixes for games container and oracle profile
This commit is contained in:
parent
354ac43314
commit
fb8699870e
@ -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 (
|
||||
|
@ -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) => (
|
||||
|
Loading…
Reference in New Issue
Block a user