Commit d5f57bc 1 parent bf3d804 commit d5f57bc Copy full SHA for d5f57bc
File tree 5 files changed +6
-27
lines changed
5 files changed +6
-27
lines changed Original file line number Diff line number Diff line change 1
- import {
2
- type ChicmozL2TxEffectDeluxe ,
3
- type ChicmozL2BlockLight ,
4
- } from "@chicmoz-pkg/types" ;
1
+ import { type ChicmozL2BlockLight , type ChicmozL2TxEffectDeluxe } from "@chicmoz-pkg/types" ;
5
2
import { blockSchema } from "~/components/blocks/blocks-schema" ;
6
- import {
7
- getTxEffectTableObj ,
8
- type TxEffectTableSchema ,
9
- } from "~/components/tx-effects/tx-effects-schema" ;
3
+ import { getTxEffectTableObj , type TxEffectTableSchema } from "~/components/tx-effects/tx-effects-schema" ;
10
4
11
5
export const mapLatestBlocks = ( latestBlocks ?: ChicmozL2BlockLight [ ] ) => {
12
6
if ( ! latestBlocks ) {
Original file line number Diff line number Diff line change 7
7
useLatestBlocks ,
8
8
useSubTitle ,
9
9
} from "~/hooks" ;
10
+ import { mapLatestBlocks } from "~/lib/map-for-table" ;
10
11
import { formatDuration } from "~/lib/utils" ;
11
12
import { routes } from "~/routes/__root" ;
12
- import { parseLatestBlocks } from "./util" ;
13
13
14
14
export const Blocks : FC = ( ) => {
15
15
useSubTitle ( routes . blocks . children . index . title ) ;
@@ -51,7 +51,7 @@ export const Blocks: FC = () => {
51
51
</ div >
52
52
< div className = "rounded-lg shadow-lg" >
53
53
< BlocksTable
54
- blocks = { parseLatestBlocks ( latestBlocks ) }
54
+ blocks = { mapLatestBlocks ( latestBlocks ) }
55
55
isLoading = { isLoading }
56
56
error = { error }
57
57
/>
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ import {
17
17
useTotalTxEffects ,
18
18
useTotalTxEffectsLast24h ,
19
19
} from "~/hooks" ;
20
+ import { mapLatestBlocks , mapLatestTxEffects } from "~/lib/map-for-table" ;
20
21
import { formatDuration , formatFees } from "~/lib/utils" ;
21
22
import { routes } from "~/routes/__root" ;
22
- import { mapLatestBlocks , mapLatestTxEffects } from "./util" ;
23
23
24
24
export const Landing : FC = ( ) => {
25
25
const { systemHealth } = useSystemHealth ( ) ;
Original file line number Diff line number Diff line change 8
8
useTotalTxEffects ,
9
9
useTotalTxEffectsLast24h ,
10
10
} from "~/hooks" ;
11
+ import { mapLatestTxEffects } from "~/lib/map-for-table" ;
11
12
import { routes } from "~/routes/__root" ;
12
- import { mapLatestTxEffects } from "../landing/util" ;
13
13
14
14
export const TxEffects : FC = ( ) => {
15
15
useSubTitle ( routes . txEffects . children . index . title ) ;
You can’t perform that action at this time.
0 commit comments