mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
* txn withdrawals page stub * add base page layout * add ConnectWallet alert * save search term in page query param * add links to the new page * add functionality to claim button * combine "Connect wallet" and "Claim" buttons * Refactor rollup configuration to introduce ParentChain structure and deprecate legacy environment variables * handle txn claim * allow to pass array of RPC urls for parent chain config * display token value and completion tx hash * fix csp * write tests for arbitrum l2 txn withdrawals * fix ts * review fixes * update screenshots and hide button if the txn is not confirmed yet
29 lines
717 B
TypeScript
29 lines
717 B
TypeScript
import type { NextPage } from 'next';
|
|
import dynamic from 'next/dynamic';
|
|
import React from 'react';
|
|
|
|
import PageNextJs from 'nextjs/PageNextJs';
|
|
|
|
import config from 'configs/app';
|
|
const rollupFeature = config.features.rollup;
|
|
|
|
const Withdrawals = dynamic(() => {
|
|
if (rollupFeature.isEnabled && rollupFeature.type === 'arbitrum') {
|
|
return import('ui/pages/ArbitrumL2TxnWithdrawals');
|
|
}
|
|
|
|
throw new Error('Txn withdrawals feature is not enabled.');
|
|
}, { ssr: false });
|
|
|
|
const Page: NextPage = () => {
|
|
return (
|
|
<PageNextJs pathname="/txn-withdrawals">
|
|
<Withdrawals/>
|
|
</PageNextJs>
|
|
);
|
|
};
|
|
|
|
export default Page;
|
|
|
|
export { txnWithdrawals as getServerSideProps } from 'nextjs/getServerSideProps';
|