-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create structure for select user account
- Loading branch information
1 parent
f90f08e
commit c3f8f30
Showing
16 changed files
with
91 additions
and
22 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
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
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,10 @@ | ||
import {useContext} from 'react' | ||
import {CommonContext} from 'renderer/context' | ||
|
||
const useSteamUserId = () => { | ||
const {steamUserId} = useContext(CommonContext) | ||
|
||
return steamUserId | ||
} | ||
|
||
export default useSteamUserId |
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
Empty file.
35 changes: 35 additions & 0 deletions
35
src/renderer/pages/select-user-account/SelectUserAccount.tsx
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,35 @@ | ||
import {useCallback} from 'react' | ||
import {useNavigate} from 'react-router-dom' | ||
import ERoute from 'renderer/enums/ERoute' | ||
import {getRoutePath} from 'renderer/route' | ||
import Button, {EButtonVariant} from 'renderer/uikit/button/Button.component' | ||
import PageFooter from 'renderer/uikit/page/footer/PageFooter.component' | ||
import Page from 'renderer/uikit/page/Page.component' | ||
|
||
const SelectUserAccount = () => { | ||
const navigate = useNavigate() | ||
|
||
const onBack = useCallback(() => navigate(getRoutePath(ERoute.SETUP)), [navigate]) | ||
const onNext = useCallback(() => navigate(getRoutePath(ERoute.CONFIGURE_ASSETS)), [navigate]) | ||
|
||
return ( | ||
<Page | ||
title='User Configuration' | ||
subtitle='Choose user account:' | ||
footerComponent={ | ||
<PageFooter | ||
leadingComponent={ | ||
<Button onClick={onBack} variant={EButtonVariant.SECONDARY}> | ||
Back | ||
</Button> | ||
} | ||
trailingComponent={<Button onClick={onNext}>Next</Button>} | ||
/> | ||
} | ||
> | ||
<span>OI</span> | ||
</Page> | ||
) | ||
} | ||
|
||
export default SelectUserAccount |
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
9 changes: 7 additions & 2 deletions
9
src/renderer/pages/setup/steam-grid-key-modal/SteamGridKeyModal.component.tsx
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
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