Skip to content

Commit

Permalink
flag manage accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettCleary committed Oct 23, 2023
1 parent f6e4a9b commit ae065b7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/frontend/screens/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import ContextProvider from '../../state/ContextProvider'
import { Background } from '@hyperplay/ui'
import libraryState from 'frontend/state/libraryState'
import storeAuthState from 'frontend/state/storeAuthState'
import { ENABLE_AMAZON_STORE } from 'frontend/constants'

export const epicLoginPath = '/loginweb/legendary'
export const gogLoginPath = '/loginweb/gog'
Expand Down Expand Up @@ -117,14 +118,16 @@ export default React.memo(function NewLogin() {
user={storeAuthState.gog.username}
logoutAction={gog.logout}
/>
<Runner
class="nile"
icon={() => <AmazonLogo />}
loginUrl={amazonLoginPath}
isLoggedIn={isAmazonLoggedIn}
user={storeAuthState.amazon.username || 'Unknown'}
logoutAction={amazon.logout}
/>
{ENABLE_AMAZON_STORE ? (
<Runner
class="nile"
icon={() => <AmazonLogo />}
loginUrl={amazonLoginPath}
isLoggedIn={isAmazonLoggedIn}
user={storeAuthState.amazon.username || 'Unknown'}
logoutAction={amazon.logout}
/>
) : null}
</div>
<button
onClick={async () => handleLibraryClick()}
Expand Down

0 comments on commit ae065b7

Please sign in to comment.