Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
6f894977
Commit
6f894977
authored
Feb 24, 2025
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build
parent
59d61f62
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
43 deletions
+43
-43
merits.tsx
pages/account/merits.tsx
+2
-2
[commitment].tsx
pages/batches/celestia/[height]/[commitment].tsx
+14
-14
index.tsx
pages/txn-withdrawals/index.tsx
+7
-7
[id].tsx
pages/validators/[id].tsx
+7
-7
index.tsx
pages/validators/index.tsx
+13
-13
No files found.
pages/account/merits.tsx
View file @
6f894977
...
...
@@ -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
>
);
};
...
...
pages/batches/celestia/[height]/[commitment].tsx
View file @
6f894977
...
...
@@ -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
>
);
};
...
...
pages/txn-withdrawals/index.tsx
View file @
6f894977
...
...
@@ -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
>
);
};
...
...
pages/validators/[id].tsx
View file @
6f894977
...
...
@@ -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
>
);
};
...
...
pages/validators/index.tsx
View file @
6f894977
...
...
@@ -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
>
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment