Skip to content

Commit a6e26ea

Browse files
authored
[Fix] Update sidebar link from "Wiki" to "Docs" (#1202)
1 parent 009d09e commit a6e26ea

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

public/locales/en/translation.json

+3
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,11 @@
10381038
"Settings": "Settings",
10391039
"sidebar": {
10401040
"achievements": "Achievements",
1041+
"docs": "Docs",
10411042
"downloadManager": "Download Manager",
10421043
"library": "Library",
1044+
"quests": "Quests",
1045+
"settings": "Settings",
10431046
"store": "Store"
10441047
},
10451048
"sideload": {

src/frontend/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function App() {
9898
/>
9999
<Route path="epicstore" element={<WebView key="epicstore" />} />
100100
<Route path="gogstore" element={<WebView key="gogstore" />} />
101-
<Route path="wiki" element={<WebView key="wiki" />} />
101+
<Route path="docs" element={<WebView key="docs" />} />
102102
<Route path="metamaskHome" element={<MetaMaskHome />} />
103103
<Route
104104
path="metamaskSnaps"

src/frontend/components/UI/Sidebar/components/SidebarLinks/index.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default observer(function SidebarLinks() {
141141
)}
142142
{SHOW_QUESTS ? (
143143
<div className="sidebarLinkGradientWrapper">
144-
<Tooltip {...tooltipProps} label="Quests">
144+
<Tooltip {...tooltipProps} label={t('sidebar.quests', 'Quests')}>
145145
<NavLink
146146
data-testid="quests"
147147
className={({ isActive }) =>
@@ -175,7 +175,7 @@ export default observer(function SidebarLinks() {
175175
</Tooltip>
176176
</div>
177177
<div className="sidebarLinkGradientWrapper">
178-
<Tooltip {...tooltipProps} label="Settings">
178+
<Tooltip {...tooltipProps} label={t('sidebar.settings', 'Settings')}>
179179
<NavLink
180180
data-testid="settings"
181181
className={({ isActive }) =>
@@ -220,13 +220,13 @@ export default observer(function SidebarLinks() {
220220
</Tooltip>
221221
</div>
222222
<div className="sidebarLinkGradientWrapper">
223-
<Tooltip {...tooltipProps} label="Wiki">
223+
<Tooltip {...tooltipProps} label={t('sidebar.docs', 'Docs')}>
224224
<NavLink
225-
data-testid="wiki"
225+
data-testid="Docs"
226226
className={({ isActive }) =>
227227
classNames('Sidebar__item', { active: isActive })
228228
}
229-
to={{ pathname: '/wiki' }}
229+
to={{ pathname: '/docs' }}
230230
>
231231
<Images.Page fill={sidebarSvgUnselectedFill} />
232232
</NavLink>

src/frontend/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export const HYPERPLAY_STORE_URL = 'https://store.hyperplay.xyz?isLauncher=true'
33
export const G7_PORTAL = 'https://app.game7.io/quests/hyperplay?layout=navless'
44
export const EPIC_STORE_URL = 'https://www.epicgames.com/store'
55
export const GOG_STORE_URL = `https://gog.com`
6-
export const WIKI_URL = 'https://docs.hyperplay.xyz/'
6+
export const DOCS_URL = 'https://docs.hyperplay.xyz/'
77
export const GOG_LOGIN_URL =
88
'https://auth.gog.com/auth?client_id=46899977096215655&redirect_uri=https%3A%2F%2Fembed.gog.com%2Fon_login_success%3Forigin%3Dclient&response_type=code&layout=galaxy'
99
export const DEFAULT_BROWSER_PROFILE_IMPORT_COLOR = '202124'

src/frontend/screens/WebView/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
GOG_LOGIN_URL,
2626
GOG_STORE_URL,
2727
HYPERPLAY_STORE_URL,
28-
WIKI_URL
28+
DOCS_URL
2929
} from '../../constants'
3030
import { METAMASK_SNAPS_URL } from 'common/constants'
3131
import storeAuthState from 'frontend/state/storeAuthState'
@@ -79,7 +79,7 @@ function WebView({
7979
'/hyperplaystore': hyperplayStore,
8080
'/epicstore': epicStore,
8181
'/gogstore': GOG_STORE_URL,
82-
'/wiki': WIKI_URL,
82+
'/docs': DOCS_URL,
8383
'/loginEpic': EPIC_LOGIN_URL,
8484
'/loginGOG': GOG_LOGIN_URL,
8585
'/loginweb/legendary': EPIC_LOGIN_URL,

0 commit comments

Comments
 (0)