Skip to content

Commit

Permalink
[Fix] go to game page instead of play (#943)
Browse files Browse the repository at this point in the history
* go to game page instead of play

* update ui, fix cta text
  • Loading branch information
BrettCleary authored Jul 19, 2024
1 parent e750415 commit 98f7692
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"@fortawesome/react-fontawesome": "^0.1.18",
"@hyperplay/chains": "^0.2.10",
"@hyperplay/check-disk-space": "^3.5.2",
"@hyperplay/ui": "^1.5.39",
"@hyperplay/ui": "^1.5.40",
"@hyperplay/utils": "^0.0.16",
"@mantine/carousel": "^7.5.1",
"@mantine/core": "^7.5.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function QuestDetailsViewPlayWrapper({
),
claim: t('quest.claimAll', 'Claim all'),
signIn: t('quest.signIn', 'Sign in'),
play: t('quest.Play', 'Play'),
play: t('quest.View Game', 'View Game'),
secondCTAText: t('quest.View Game', 'View Game'),
connectSteamAccount: t(
'quest.connectSteamAccount',
Expand Down Expand Up @@ -173,14 +173,7 @@ export function QuestDetailsViewPlayWrapper({
}}
classNames={{ root: styles.questDetailsRoot }}
isQuestsPage={true}
onPlayClick={async () =>
window.api.launch({
appName: questMeta.project_id,
launchArguments: '',
runner: 'hyperplay'
})
}
onSecondCTAClick={async () => navigateToGamePage(questMeta.project_id)}
onPlayClick={async () => navigateToGamePage(questMeta.project_id)}
key={`questDetailsLoadedId${questMeta.id}streak${!!questPlayStreakData}`}
/>
)
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2003,10 +2003,10 @@
supertest "^6.3.3"
zod "^3.22.4"

"@hyperplay/ui@^1.5.39":
version "1.5.39"
resolved "https://registry.yarnpkg.com/@hyperplay/ui/-/ui-1.5.39.tgz#ff5f286af6d960c42dcd007f387f9a2943a62331"
integrity sha512-cQbK9yeDJuuqu3fYzO5Exgy/iDX4rrebFq0qyTdpA7SRVonnDB66UBhmslaNcFxRYRwyOMnqYGKrg1VjoK13HQ==
"@hyperplay/ui@^1.5.40":
version "1.5.40"
resolved "https://registry.yarnpkg.com/@hyperplay/ui/-/ui-1.5.40.tgz#49105d1978c008059570ff0dcfa11287e56eb5f1"
integrity sha512-7m0zxh+qn/zeieapomdLZUNNWxSFZE0Aw91/Jbw83b19hsn6o0nJuJcbj1uEvduPxPSrYSpCEo7fu7AxcwFkOg==

"@hyperplay/utils@^0.0.12":
version "0.0.12"
Expand Down

0 comments on commit 98f7692

Please sign in to comment.