diff --git a/public/locales/en/gamepage.json b/public/locales/en/gamepage.json index 57b378bd57..f31785437d 100644 --- a/public/locales/en/gamepage.json +++ b/public/locales/en/gamepage.json @@ -213,6 +213,10 @@ "field": { "title": "Title" }, + "import-hint": { + "content": "Do NOT use this feature for that.<1>Instead, <3>log into the store, look for the game in your library, open the installation dialog, and click the "Import Game" button", + "title": "Important! Are you adding a game from Epic/GOG/Amazon? Click here!" + }, "info": { "broser": "BrowserURL", "exe": "Select Executable", diff --git a/src/frontend/screens/Library/components/InstallModal/SideloadDialog/index.tsx b/src/frontend/screens/Library/components/InstallModal/SideloadDialog/index.tsx index ffddd7f250..3052413ad1 100644 --- a/src/frontend/screens/Library/components/InstallModal/SideloadDialog/index.tsx +++ b/src/frontend/screens/Library/components/InstallModal/SideloadDialog/index.tsx @@ -7,7 +7,8 @@ import { CachedImage, TextInputField, PathSelectionBox, - ToggleSwitch + ToggleSwitch, + InfoBox } from 'frontend/components/UI' import { DialogContent, DialogFooter } from 'frontend/components/UI/Dialog' import { @@ -17,12 +18,13 @@ import { writeConfig } from 'frontend/helpers' import React, { useContext, useEffect, useState } from 'react' -import { useTranslation } from 'react-i18next' +import { Trans, useTranslation } from 'react-i18next' import { AvailablePlatforms } from '..' import fallbackImage from 'frontend/assets/heroic_card.jpg' import ContextProvider from 'frontend/state/ContextProvider' import classNames from 'classnames' import axios from 'axios' +import { NavLink } from 'react-router-dom' type Props = { availablePlatforms: AvailablePlatforms @@ -47,7 +49,7 @@ export default function SideloadDialog({ children, appName }: Props) { - const { t } = useTranslation('gamepage') + const { t, i18n } = useTranslation('gamepage') const [title, setTitle] = useState( t('sideload.field.title', 'Title') ) @@ -291,6 +293,22 @@ export default function SideloadDialog({
+ +
+ + Do NOT use this feature for that. +
+ Instead, log into the store, + look for the game in your library, open the installation + dialog, and click the "Import Game" button +
+
+