vega-frontend-monorepo/apps/trading/client-pages/transfer/transfer.tsx
Maciek 95a51fd152
chore(withdraws): standalone pages for withdraw and transfer (#4728)
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2023-09-19 08:15:36 +02:00

24 lines
758 B
TypeScript

import { useSearchParams } from 'react-router-dom';
import { t } from '@vegaprotocol/i18n';
import { TransferContainer } from '@vegaprotocol/accounts';
import { GetStarted } from '../../components/welcome-dialog';
export const Transfer = () => {
const [searchParams] = useSearchParams();
const assetId = searchParams.get('assetId') || undefined;
return (
<div className="flex justify-center w-full px-8 py-16">
<div className="lg:min-w-[700px] min-w-[300px] max-w-[700px]">
<h1 className="text-4xl uppercase xl:text-5xl font-alpha calt">
{t('Transfer')}
</h1>
<div className="mt-10">
<TransferContainer assetId={assetId} />
<GetStarted />
</div>
</div>
</div>
);
};