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

15 lines
451 B
TypeScript
Raw Normal View History

2023-08-02 17:06:49 +00:00
import { DepositContainer } from '@vegaprotocol/deposits';
import { useSearchParams } from 'react-router-dom';
import { DepositGetStarted } from './deposit-get-started';
2023-08-02 17:06:49 +00:00
export const Deposit = () => {
const [searchParams] = useSearchParams();
const assetId = searchParams.get('assetId') || undefined;
2023-08-02 17:06:49 +00:00
return (
<div className="flex flex-col gap-6">
<DepositContainer assetId={assetId} />
<DepositGetStarted />
2023-08-02 17:06:49 +00:00
</div>
);
};