temporarily disable playground and test my node in the wallet
once we have time to fix these we will import these again
This commit is contained in:
@@ -39,9 +39,9 @@ export const NodeSettings = () => {
|
||||
if (location.state === 'unbond') {
|
||||
setValue('Unbond');
|
||||
}
|
||||
if (location.state === 'test-node') {
|
||||
setValue('Test my node');
|
||||
}
|
||||
// if (location.state === 'test-node') {
|
||||
// setValue('Test my node');
|
||||
// }
|
||||
}, [location]);
|
||||
|
||||
const handleUnbond = async (fee?: FeeDetails) => {
|
||||
@@ -129,11 +129,11 @@ export const NodeSettings = () => {
|
||||
>
|
||||
<Divider />
|
||||
{value === 'General' && bondedNode && <NodeGeneralSettings bondedNode={bondedNode} />}
|
||||
{value === 'Test my node' && <NodeTestPage />}
|
||||
{/* {value === 'Test my node' && <NodeTestPage />} */}
|
||||
{value === 'Unbond' && bondedNode && (
|
||||
<NodeUnbondPage bondedNode={bondedNode} onConfirm={handleUnbond} onError={handleError} />
|
||||
)}
|
||||
{value === 'Playground' && bondedNode && <ApyPlayground bondedNode={bondedNode as TBondedMixnode} />}
|
||||
{/* {value === 'Playground' && bondedNode && <ApyPlayground bondedNode={bondedNode as TBondedMixnode} />} */}
|
||||
{confirmationDetails && confirmationDetails.status === 'success' && (
|
||||
<ConfirmationDetailsModal
|
||||
title={confirmationDetails.title}
|
||||
|
||||
@@ -5,11 +5,15 @@ export const makeNavItems = (bondedNode: TBondedNode) => {
|
||||
const navItems: NavItems[] = ['Unbond'];
|
||||
|
||||
if (isNymNode(bondedNode)) {
|
||||
// add these items to the beginning of the array "General", "Test my node", "Playground"
|
||||
navItems.unshift('General', 'Test my node', 'Playground');
|
||||
// Add these items to the beginning of the array "General", "Test my node", "Playground"
|
||||
// Temporarily removed , 'Test my node due to wasm issues which we need to fix
|
||||
// 'Playground' due to freezing issues
|
||||
navItems.unshift('General');
|
||||
}
|
||||
|
||||
return navItems;
|
||||
};
|
||||
|
||||
export type NavItems = 'General' | 'Unbond' | 'Test my node' | 'Playground';
|
||||
// And these back in once fixed.
|
||||
// 'Playground' | 'Test my node' include in array at a later point
|
||||
export type NavItems = 'General' | 'Unbond' ;
|
||||
|
||||
Reference in New Issue
Block a user