Commit 6f894977 authored by tom's avatar tom

fix build

parent 59d61f62
...@@ -4,12 +4,12 @@ import React from 'react'; ...@@ -4,12 +4,12 @@ import React from 'react';
import PageNextJs from 'nextjs/PageNextJs'; import PageNextJs from 'nextjs/PageNextJs';
const RewardsDashboard = dynamic(() => import('ui/pages/RewardsDashboard'), { ssr: false }); // const RewardsDashboard = dynamic(() => import('ui/pages/RewardsDashboard'), { ssr: false });
const Page: NextPage = () => { const Page: NextPage = () => {
return ( return (
<PageNextJs pathname="/account/merits"> <PageNextJs pathname="/account/merits">
<RewardsDashboard/> { /* <RewardsDashboard/> */ }
</PageNextJs> </PageNextJs>
); );
}; };
......
...@@ -9,24 +9,24 @@ import config from 'configs/app'; ...@@ -9,24 +9,24 @@ import config from 'configs/app';
const rollupFeature = config.features.rollup; const rollupFeature = config.features.rollup;
const Batch = dynamic(() => { // const Batch = dynamic(() => {
if (!rollupFeature.isEnabled) { // if (!rollupFeature.isEnabled) {
throw new Error('Rollup feature is not enabled.'); // throw new Error('Rollup feature is not enabled.');
} // }
switch (rollupFeature.type) { // switch (rollupFeature.type) {
case 'arbitrum': // case 'arbitrum':
return import('ui/pages/ArbitrumL2TxnBatch'); // return import('ui/pages/ArbitrumL2TxnBatch');
case 'optimistic': // case 'optimistic':
return import('ui/pages/OptimisticL2TxnBatch'); // return import('ui/pages/OptimisticL2TxnBatch');
} // }
throw new Error('Celestia txn batches feature is not enabled.'); // throw new Error('Celestia txn batches feature is not enabled.');
}, { ssr: false }); // }, { ssr: false });
const Page: NextPage<Props> = (props: Props) => { const Page: NextPage<Props> = (props: Props) => {
return ( return (
<PageNextJs pathname="/batches/celestia/[height]/[commitment]" query={ props.query }> <PageNextJs pathname="/batches/celestia/[height]/[commitment]" query={ props.query }>
<Batch/> { /* <Batch/> */ }
</PageNextJs> </PageNextJs>
); );
}; };
......
...@@ -7,18 +7,18 @@ import PageNextJs from 'nextjs/PageNextJs'; ...@@ -7,18 +7,18 @@ import PageNextJs from 'nextjs/PageNextJs';
import config from 'configs/app'; import config from 'configs/app';
const rollupFeature = config.features.rollup; const rollupFeature = config.features.rollup;
const Withdrawals = dynamic(() => { // const Withdrawals = dynamic(() => {
if (rollupFeature.isEnabled && rollupFeature.type === 'arbitrum') { // if (rollupFeature.isEnabled && rollupFeature.type === 'arbitrum') {
return import('ui/pages/ArbitrumL2TxnWithdrawals'); // return import('ui/pages/ArbitrumL2TxnWithdrawals');
} // }
throw new Error('Txn withdrawals feature is not enabled.'); // throw new Error('Txn withdrawals feature is not enabled.');
}, { ssr: false }); // }, { ssr: false });
const Page: NextPage = () => { const Page: NextPage = () => {
return ( return (
<PageNextJs pathname="/txn-withdrawals"> <PageNextJs pathname="/txn-withdrawals">
<Withdrawals/> { /* <Withdrawals/> */ }
</PageNextJs> </PageNextJs>
); );
}; };
......
...@@ -9,18 +9,18 @@ import config from 'configs/app'; ...@@ -9,18 +9,18 @@ import config from 'configs/app';
const validatorsFeature = config.features.validators; const validatorsFeature = config.features.validators;
const ValidatorDetails = dynamic(() => { // const ValidatorDetails = dynamic(() => {
if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'zilliqa') { // if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'zilliqa') {
return import('ui/pages/ValidatorZilliqa'); // return import('ui/pages/ValidatorZilliqa');
} // }
throw new Error('Validators feature is not enabled.'); // throw new Error('Validators feature is not enabled.');
}, { ssr: false }); // }, { ssr: false });
const Page: NextPage<Props> = (props) => { const Page: NextPage<Props> = (props) => {
return ( return (
<PageNextJs pathname="/validators/[id]" query={ props.query }> <PageNextJs pathname="/validators/[id]" query={ props.query }>
<ValidatorDetails/> { /* <ValidatorDetails/> */ }
</PageNextJs> </PageNextJs>
); );
}; };
......
...@@ -8,26 +8,26 @@ import config from 'configs/app'; ...@@ -8,26 +8,26 @@ import config from 'configs/app';
const validatorsFeature = config.features.validators; const validatorsFeature = config.features.validators;
const Validators = dynamic(() => { // const Validators = dynamic(() => {
if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'stability') { // if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'stability') {
return import('ui/pages/ValidatorsStability'); // return import('ui/pages/ValidatorsStability');
} // }
if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'blackfort') { // if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'blackfort') {
return import('ui/pages/ValidatorsBlackfort'); // return import('ui/pages/ValidatorsBlackfort');
} // }
if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'zilliqa') { // if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'zilliqa') {
return import('ui/pages/ValidatorsZilliqa'); // return import('ui/pages/ValidatorsZilliqa');
} // }
throw new Error('Validators feature is not enabled.'); // throw new Error('Validators feature is not enabled.');
}, { ssr: false }); // }, { ssr: false });
const Page: NextPage = () => { const Page: NextPage = () => {
return ( return (
<PageNextJs pathname="/validators"> <PageNextJs pathname="/validators">
<Validators/> { /* <Validators/> */ }
</PageNextJs> </PageNextJs>
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment