diff --git a/src/containers/main/Dashboard/Dashboard.tsx b/src/containers/main/Dashboard/Dashboard.tsx index 5e7a57e89..1f0163db5 100644 --- a/src/containers/main/Dashboard/Dashboard.tsx +++ b/src/containers/main/Dashboard/Dashboard.tsx @@ -1,18 +1,9 @@ import MiningView from './MiningView/MiningView'; import { DashboardContentContainer } from './styles'; import { useUIStore } from '@app/store/useUIStore.ts'; +import WalletView from '@app/containers/main/Dashboard/WalletView/WalletView.tsx'; export default function Dashboard() { const view = useUIStore((s) => s.view); - return ( - - {view === 'mining' ? ( - - ) : ( - - {`hello i am a wallet view`} - - )} - - ); + return {view === 'mining' ? : }; } diff --git a/src/containers/main/Dashboard/WalletView/WalletView.styles.ts b/src/containers/main/Dashboard/WalletView/WalletView.styles.ts index e69de29bb..0fc1049cd 100644 --- a/src/containers/main/Dashboard/WalletView/WalletView.styles.ts +++ b/src/containers/main/Dashboard/WalletView/WalletView.styles.ts @@ -0,0 +1,9 @@ +import styled from 'styled-components'; + +export const WalletViewContainer = styled.div` + display: flex; + flex-direction: column; + align-items: center; + width: 100%; + height: 100%; +`; diff --git a/src/containers/main/Dashboard/WalletView/WalletView.tsx b/src/containers/main/Dashboard/WalletView/WalletView.tsx index e69de29bb..7991572a8 100644 --- a/src/containers/main/Dashboard/WalletView/WalletView.tsx +++ b/src/containers/main/Dashboard/WalletView/WalletView.tsx @@ -0,0 +1,12 @@ +import { memo } from 'react'; +import { WalletViewContainer } from '@app/containers/main/Dashboard/WalletView/WalletView.styles.ts'; + +const WalletView = memo(function WalletView() { + return ( + + {`👻`} + + ); +}); + +export default WalletView; diff --git a/src/containers/main/MainView.tsx b/src/containers/main/MainView.tsx index 9109b7008..b673643db 100644 --- a/src/containers/main/MainView.tsx +++ b/src/containers/main/MainView.tsx @@ -2,22 +2,14 @@ import { useAppConfigStore } from '@app/store/useAppConfigStore'; import { Dashboard } from '@app/containers/main/Dashboard'; import SidebarNavigation from '@app/containers/main/SidebarNavigation/SidebarNavigation.tsx'; import { DashboardContainer } from '@app/theme/styles.ts'; -import { useUIStore } from '@app/store/useUIStore.ts'; export default function MainView() { const visualMode = useAppConfigStore((s) => s.visual_mode); - const view = useUIStore((s) => s.view); return ( - {view === 'mining' ? ( - - ) : ( - - {`hello i am a wallet view`} - - )} + ); } diff --git a/src/theme/palettes/dark.ts b/src/theme/palettes/dark.ts index d5f742435..74e6593bc 100644 --- a/src/theme/palettes/dark.ts +++ b/src/theme/palettes/dark.ts @@ -24,7 +24,6 @@ import { ThemePalette } from '@app/theme/types.ts'; import { colors as c } from './colors.ts'; import { colorsAlpha, colorsAlpha as alpha } from './colorsAlpha.ts'; import { darkGradients } from '@app/theme/gradients.ts'; -import { convertHexToRGBA } from '@app/utils'; const darkPalette: ThemePalette = { mode: 'dark',