2024-02-13 16:17:00 +00:00
|
|
|
import { TinyScroll } from '@vegaprotocol/ui-toolkit';
|
2023-11-21 11:08:33 +00:00
|
|
|
import { useT } from '../../lib/use-t';
|
2023-11-15 21:46:19 +00:00
|
|
|
import { RewardsContainer } from '../../components/rewards-container';
|
2023-12-06 13:31:40 +00:00
|
|
|
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 = () => {
|
2023-11-21 11:08:33 +00:00
|
|
|
const t = useT();
|
2023-11-27 08:18:59 +00:00
|
|
|
const title = t('Rewards');
|
2024-02-13 16:17:00 +00:00
|
|
|
usePageTitle(title);
|
|
|
|
|
2023-11-15 21:46:19 +00:00
|
|
|
return (
|
2023-12-06 13:31:40 +00:00
|
|
|
<ErrorBoundary feature="rewards">
|
2024-01-10 15:49:58 +00:00
|
|
|
<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>
|
2023-12-06 13:31:40 +00:00
|
|
|
<RewardsContainer />
|
2024-01-10 15:49:58 +00:00
|
|
|
</TinyScroll>
|
2023-12-06 13:31:40 +00:00
|
|
|
</ErrorBoundary>
|
2023-11-15 21:46:19 +00:00
|
|
|
);
|
|
|
|
};
|