Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bring back configurable cma URL #160

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/mainmenu/MainMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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<MainMenuProps> = ({ tabs }) => {
Expand Down
5 changes: 5 additions & 0 deletions src/configuration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down