vega-frontend-monorepo/apps/trading/client-pages/rewards/rewards.tsx

21 lines
646 B
TypeScript
Raw Normal View History

2024-02-13 16:17:00 +00:00
import { TinyScroll } from '@vegaprotocol/ui-toolkit';
import { useT } from '../../lib/use-t';
2023-11-15 21:46:19 +00:00
import { RewardsContainer } from '../../components/rewards-container';
import { ErrorBoundary } from '../../components/error-boundary';
2024-02-13 16:17:00 +00:00
import { usePageTitle } from '../../lib/hooks/use-page-title';
2023-11-15 21:46:19 +00:00
export const Rewards = () => {
const t = useT();
const title = t('Rewards');
2024-02-13 16:17:00 +00:00
usePageTitle(title);
2023-11-15 21:46:19 +00:00
return (
<ErrorBoundary feature="rewards">
<TinyScroll className="p-4 max-h-full overflow-auto">
2024-02-13 16:17:00 +00:00
<h1 className="md:px-4 pb-4 text-2xl">{title}</h1>
<RewardsContainer />
</TinyScroll>
</ErrorBoundary>
2023-11-15 21:46:19 +00:00
);
};