Commit 6f894977 authored by tom's avatar tom

fix build

parent 59d61f62
......@@ -4,12 +4,12 @@ import React from 'react';
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 = () => {
return (
<PageNextJs pathname="/account/merits">
<RewardsDashboard/>
{ /* <RewardsDashboard/> */ }
</PageNextJs>
);
};
......
......@@ -9,24 +9,24 @@ import config from 'configs/app';
const rollupFeature = config.features.rollup;
const Batch = dynamic(() => {
if (!rollupFeature.isEnabled) {
throw new Error('Rollup feature is not enabled.');
}
switch (rollupFeature.type) {
case 'arbitrum':
return import('ui/pages/ArbitrumL2TxnBatch');
case 'optimistic':
return import('ui/pages/OptimisticL2TxnBatch');
}
throw new Error('Celestia txn batches feature is not enabled.');
}, { ssr: false });
// const Batch = dynamic(() => {
// if (!rollupFeature.isEnabled) {
// throw new Error('Rollup feature is not enabled.');
// }
// switch (rollupFeature.type) {
// case 'arbitrum':
// return import('ui/pages/ArbitrumL2TxnBatch');
// case 'optimistic':
// return import('ui/pages/OptimisticL2TxnBatch');
// }
// throw new Error('Celestia txn batches feature is not enabled.');
// }, { ssr: false });
const Page: NextPage<Props> = (props: Props) => {
return (
<PageNextJs pathname="/batches/celestia/[height]/[commitment]" query={ props.query }>
<Batch/>
{ /* <Batch/> */ }
</PageNextJs>
);
};
......
......@@ -7,18 +7,18 @@ 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');
}
// 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 });
// throw new Error('Txn withdrawals feature is not enabled.');
// }, { ssr: false });
const Page: NextPage = () => {
return (
<PageNextJs pathname="/txn-withdrawals">
<Withdrawals/>
{ /* <Withdrawals/> */ }
</PageNextJs>
);
};
......
......@@ -9,18 +9,18 @@ import config from 'configs/app';
const validatorsFeature = config.features.validators;
const ValidatorDetails = dynamic(() => {
if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'zilliqa') {
return import('ui/pages/ValidatorZilliqa');
}
// const ValidatorDetails = dynamic(() => {
// if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'zilliqa') {
// return import('ui/pages/ValidatorZilliqa');
// }
throw new Error('Validators feature is not enabled.');
}, { ssr: false });
// throw new Error('Validators feature is not enabled.');
// }, { ssr: false });
const Page: NextPage<Props> = (props) => {
return (
<PageNextJs pathname="/validators/[id]" query={ props.query }>
<ValidatorDetails/>
{ /* <ValidatorDetails/> */ }
</PageNextJs>
);
};
......
......@@ -8,26 +8,26 @@ import config from 'configs/app';
const validatorsFeature = config.features.validators;
const Validators = dynamic(() => {
if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'stability') {
return import('ui/pages/ValidatorsStability');
}
// const Validators = dynamic(() => {
// if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'stability') {
// return import('ui/pages/ValidatorsStability');
// }
if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'blackfort') {
return import('ui/pages/ValidatorsBlackfort');
}
// if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'blackfort') {
// return import('ui/pages/ValidatorsBlackfort');
// }
if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'zilliqa') {
return import('ui/pages/ValidatorsZilliqa');
}
// if (validatorsFeature.isEnabled && validatorsFeature.chainType === 'zilliqa') {
// return import('ui/pages/ValidatorsZilliqa');
// }
throw new Error('Validators feature is not enabled.');
}, { ssr: false });
// throw new Error('Validators feature is not enabled.');
// }, { ssr: false });
const Page: NextPage = () => {
return (
<PageNextJs pathname="/validators">
<Validators/>
{ /* <Validators/> */ }
</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