-
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
aa11bc2
commit 883bae8
Showing
5 changed files
with
51 additions
and
19 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,10 +1,18 @@ | ||
import MiningView from './MiningView/MiningView'; | ||
import { DashboardContentContainer } from './styles'; | ||
import { useUIStore } from '@app/store/useUIStore.ts'; | ||
|
||
export default function Dashboard() { | ||
const view = useUIStore((s) => s.view); | ||
return ( | ||
<DashboardContentContainer> | ||
<MiningView /> | ||
{view === 'mining' ? ( | ||
<MiningView /> | ||
) : ( | ||
<div> | ||
<h1>{`hello i am a wallet view`}</h1> | ||
</div> | ||
)} | ||
</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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export type viewType = 'setup' | 'tribes' | 'mining'; | ||
export type backgroundType = 'onboarding' | 'idle' | 'determining' | 'loading' | 'mining' | 'loser' | 'winner'; | ||
export type ViewType = 'mining' | 'wallet'; | ||
export type modeType = 'Eco' | 'Ludicrous' | 'Custom'; | ||
export type displayMode = 'system' | 'dark' | 'light'; |
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