File tree Expand file tree Collapse file tree 5 files changed +24
-21
lines changed Expand file tree Collapse file tree 5 files changed +24
-21
lines changed Original file line number Diff line number Diff line change 1
1
import MiningView from './MiningView/MiningView' ;
2
2
import { DashboardContentContainer } from './styles' ;
3
3
import { useUIStore } from '@app/store/useUIStore.ts' ;
4
+ import WalletView from '@app/containers/main/Dashboard/WalletView/WalletView.tsx' ;
4
5
5
6
export default function Dashboard ( ) {
6
7
const view = useUIStore ( ( s ) => s . view ) ;
7
- return (
8
- < DashboardContentContainer >
9
- { view === 'mining' ? (
10
- < MiningView />
11
- ) : (
12
- < div >
13
- < h1 > { `hello i am a wallet view` } </ h1 >
14
- </ div >
15
- ) }
16
- </ DashboardContentContainer >
17
- ) ;
8
+ return < DashboardContentContainer > { view === 'mining' ? < MiningView /> : < WalletView /> } </ DashboardContentContainer > ;
18
9
}
Original file line number Diff line number Diff line change
1
+ import styled from 'styled-components' ;
2
+
3
+ export const WalletViewContainer = styled . div `
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: center;
7
+ width: 100%;
8
+ height: 100%;
9
+ ` ;
Original file line number Diff line number Diff line change
1
+ import { memo } from 'react' ;
2
+ import { WalletViewContainer } from '@app/containers/main/Dashboard/WalletView/WalletView.styles.ts' ;
3
+
4
+ const WalletView = memo ( function WalletView ( ) {
5
+ return (
6
+ < WalletViewContainer >
7
+ < h1 > { `👻` } </ h1 >
8
+ </ WalletViewContainer >
9
+ ) ;
10
+ } ) ;
11
+
12
+ export default WalletView ;
Original file line number Diff line number Diff line change @@ -2,22 +2,14 @@ import { useAppConfigStore } from '@app/store/useAppConfigStore';
2
2
import { Dashboard } from '@app/containers/main/Dashboard' ;
3
3
import SidebarNavigation from '@app/containers/main/SidebarNavigation/SidebarNavigation.tsx' ;
4
4
import { DashboardContainer } from '@app/theme/styles.ts' ;
5
- import { useUIStore } from '@app/store/useUIStore.ts' ;
6
5
7
6
export default function MainView ( ) {
8
7
const visualMode = useAppConfigStore ( ( s ) => s . visual_mode ) ;
9
- const view = useUIStore ( ( s ) => s . view ) ;
10
8
11
9
return (
12
10
< DashboardContainer $visualModeOff = { ! visualMode } >
13
11
< SidebarNavigation />
14
- { view === 'mining' ? (
15
- < Dashboard />
16
- ) : (
17
- < div >
18
- < h1 > { `hello i am a wallet view` } </ h1 >
19
- </ div >
20
- ) }
12
+ < Dashboard />
21
13
</ DashboardContainer >
22
14
) ;
23
15
}
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import { ThemePalette } from '@app/theme/types.ts';
24
24
import { colors as c } from './colors.ts' ;
25
25
import { colorsAlpha , colorsAlpha as alpha } from './colorsAlpha.ts' ;
26
26
import { darkGradients } from '@app/theme/gradients.ts' ;
27
- import { convertHexToRGBA } from '@app/utils' ;
28
27
29
28
const darkPalette : ThemePalette = {
30
29
mode : 'dark' ,
You can’t perform that action at this time.
0 commit comments