-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
883bae8
commit 2f72699
Showing
5 changed files
with
24 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<DashboardContentContainer> | ||
{view === 'mining' ? ( | ||
<MiningView /> | ||
) : ( | ||
<div> | ||
<h1>{`hello i am a wallet view`}</h1> | ||
</div> | ||
)} | ||
</DashboardContentContainer> | ||
); | ||
return <DashboardContentContainer>{view === 'mining' ? <MiningView /> : <WalletView />}</DashboardContentContainer>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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%; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<WalletViewContainer> | ||
<h1>{`👻`}</h1> | ||
</WalletViewContainer> | ||
); | ||
}); | ||
|
||
export default WalletView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters