Skip to content

Commit 98f7692

Browse files
authored
[Fix] go to game page instead of play (#943)
* go to game page instead of play * update ui, fix cta text
1 parent e750415 commit 98f7692

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
"@fortawesome/react-fontawesome": "^0.1.18",
170170
"@hyperplay/chains": "^0.2.10",
171171
"@hyperplay/check-disk-space": "^3.5.2",
172-
"@hyperplay/ui": "^1.5.39",
172+
"@hyperplay/ui": "^1.5.40",
173173
"@hyperplay/utils": "^0.0.16",
174174
"@mantine/carousel": "^7.5.1",
175175
"@mantine/core": "^7.5.1",

src/frontend/screens/Quests/components/QuestDetailsViewPlay/index.tsx

+2-9
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function QuestDetailsViewPlayWrapper({
5555
),
5656
claim: t('quest.claimAll', 'Claim all'),
5757
signIn: t('quest.signIn', 'Sign in'),
58-
play: t('quest.Play', 'Play'),
58+
play: t('quest.View Game', 'View Game'),
5959
secondCTAText: t('quest.View Game', 'View Game'),
6060
connectSteamAccount: t(
6161
'quest.connectSteamAccount',
@@ -173,14 +173,7 @@ export function QuestDetailsViewPlayWrapper({
173173
}}
174174
classNames={{ root: styles.questDetailsRoot }}
175175
isQuestsPage={true}
176-
onPlayClick={async () =>
177-
window.api.launch({
178-
appName: questMeta.project_id,
179-
launchArguments: '',
180-
runner: 'hyperplay'
181-
})
182-
}
183-
onSecondCTAClick={async () => navigateToGamePage(questMeta.project_id)}
176+
onPlayClick={async () => navigateToGamePage(questMeta.project_id)}
184177
key={`questDetailsLoadedId${questMeta.id}streak${!!questPlayStreakData}`}
185178
/>
186179
)

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -2003,10 +2003,10 @@
20032003
supertest "^6.3.3"
20042004
zod "^3.22.4"
20052005

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

20112011
"@hyperplay/utils@^0.0.12":
20122012
version "0.0.12"

0 commit comments

Comments
 (0)