diff --git a/src/components/mainmenu/MainMenu.tsx b/src/components/mainmenu/MainMenu.tsx index 32ab9aa..cdd4d26 100644 --- a/src/components/mainmenu/MainMenu.tsx +++ b/src/components/mainmenu/MainMenu.tsx @@ -4,7 +4,7 @@ import { FC, RefObject, useContext, useMemo } from "react"; import { useTranslation } from "react-i18next"; import { Linking } from "react-native"; -import { appBase, conWebsite } from "../../configuration"; +import { conWebsite, catchEmUrl } from "../../configuration"; import { AuthContext, getAccessToken } from "../../context/AuthContext"; import { useAppNavigation } from "../../hooks/nav/useAppNavigation"; import { RecordId } from "../../store/eurofurence/types"; @@ -22,7 +22,7 @@ const openFursuitGames = async (t: TFunction) => { alert(t("not_logged_in")); return; } - await Linking.openURL(`${appBase}/companion/#/login?embedded=false&returnPath=/collect&token=${token}`).catch(console.error); + await Linking.openURL(catchEmUrl).catch(console.error); }; export const MainMenu: FC = ({ tabs }) => { diff --git a/src/configuration.tsx b/src/configuration.tsx index 244bb13..1108cf6 100644 --- a/src/configuration.tsx +++ b/src/configuration.tsx @@ -55,6 +55,11 @@ export const showServices = conventionConfig.convention.showServices; */ export const showCatchEm = conventionConfig.convention.showCatchEm; +/** + * URL for accessing the Catch 'em All game for this convention. + */ +export const catchEmUrl = conventionConfig.convention.catchEmUrl; + /** * URL leading to the Artist Alley detail page for this convention. */