1- import React , { useCallback } from 'react' ;
1+ import React from 'react' ;
22import { observer } from 'mobx-react-lite' ;
33import { usePrefixedTranslation } from 'hooks' ;
44import { useStore } from 'store' ;
5- import { BarChart , List } from 'components/base' ;
65import LoaderLines from 'components/common/LoaderLines' ;
76import Stat from 'components/common/Stat' ;
87import Unit from 'components/common/Unit' ;
@@ -42,17 +41,6 @@ const Styled = {
4241 ` ,
4342 Stat : StyledStat . withComponent ( Stat ) ,
4443 BatchCountdown : StyledStat . withComponent ( BatchCountdown ) ,
45- ViewMode : styled . div `
46- position: absolute;
47- bottom: -40px;
48- right: 0;
49- z-index: 1;
50- opacity: 0.6;
51-
52- &:hover {
53- opacity: 1;
54- }
55- ` ,
5644 LoaderLines : styled ( LoaderLines ) `
5745 .line {
5846 margin: 10px 1px;
@@ -65,12 +53,9 @@ const BatchStats: React.FC = () => {
6553 const { l } = usePrefixedTranslation ( 'cmps.pool.batches.BatchStats' ) ;
6654 const { batchesView } = useStore ( ) ;
6755
68- const handleViewChart = useCallback ( ( ) => batchesView . setViewMode ( 'chart' ) , [ ] ) ;
69- const handleViewList = useCallback ( ( ) => batchesView . setViewMode ( 'list' ) , [ ] ) ;
70-
7156 const tipProps = { tipPlacement : 'bottom' , tipCapitalize : false } ;
7257
73- const { Wrapper, Stat, BatchCountdown, ViewMode , LoaderLines } = Styled ;
58+ const { Wrapper, Stat, BatchCountdown, LoaderLines } = Styled ;
7459 return (
7560 < Wrapper >
7661 < div >
@@ -111,10 +96,6 @@ const BatchStats: React.FC = () => {
11196 value = { < Unit sats = { batchesView . paidSats } suffix = { false } /> }
11297 />
11398 </ div >
114- < ViewMode >
115- < BarChart size = "large" onClick = { handleViewChart } />
116- < List size = "large" onClick = { handleViewList } />
117- </ ViewMode >
11899 </ Wrapper >
119100 ) ;
120101} ;
0 commit comments