Skip to content

Commit 2f72699

Browse files
committed
wip: wallet view init
1 parent 883bae8 commit 2f72699

File tree

5 files changed

+24
-21
lines changed

5 files changed

+24
-21
lines changed
Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
import MiningView from './MiningView/MiningView';
22
import { DashboardContentContainer } from './styles';
33
import { useUIStore } from '@app/store/useUIStore.ts';
4+
import WalletView from '@app/containers/main/Dashboard/WalletView/WalletView.tsx';
45

56
export default function Dashboard() {
67
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>;
189
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
`;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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;

src/containers/main/MainView.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,14 @@ import { useAppConfigStore } from '@app/store/useAppConfigStore';
22
import { Dashboard } from '@app/containers/main/Dashboard';
33
import SidebarNavigation from '@app/containers/main/SidebarNavigation/SidebarNavigation.tsx';
44
import { DashboardContainer } from '@app/theme/styles.ts';
5-
import { useUIStore } from '@app/store/useUIStore.ts';
65

76
export default function MainView() {
87
const visualMode = useAppConfigStore((s) => s.visual_mode);
9-
const view = useUIStore((s) => s.view);
108

119
return (
1210
<DashboardContainer $visualModeOff={!visualMode}>
1311
<SidebarNavigation />
14-
{view === 'mining' ? (
15-
<Dashboard />
16-
) : (
17-
<div>
18-
<h1>{`hello i am a wallet view`}</h1>
19-
</div>
20-
)}
12+
<Dashboard />
2113
</DashboardContainer>
2214
);
2315
}

src/theme/palettes/dark.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { ThemePalette } from '@app/theme/types.ts';
2424
import { colors as c } from './colors.ts';
2525
import { colorsAlpha, colorsAlpha as alpha } from './colorsAlpha.ts';
2626
import { darkGradients } from '@app/theme/gradients.ts';
27-
import { convertHexToRGBA } from '@app/utils';
2827

2928
const darkPalette: ThemePalette = {
3029
mode: 'dark',

0 commit comments

Comments
 (0)