diff --git a/.env b/.env deleted file mode 100644 index 5afc6a0..0000000 --- a/.env +++ /dev/null @@ -1,3 +0,0 @@ -EXPO_PUBLIC_DELETE_ACCOUNT=https://seikimo.moe/account/delete -EXPO_PUBLIC_TOS_URL=https://docs.seikimo.moe/laudiolin/terms-of-service.html -EXPO_PUBLIC_PRIVACY_URL=https://docs.seikimo.moe/laudiolin/privacy-policy.html diff --git a/src/ui/Settings.tsx b/src/ui/Settings.tsx index 1bc78db..cb0a090 100644 --- a/src/ui/Settings.tsx +++ b/src/ui/Settings.tsx @@ -14,6 +14,7 @@ import { toIconUrl, validateAddress, validateSocket } from "@backend/utils"; import { DarkTheme, LightTheme, value } from "@style/Laudiolin"; import { useSafeAreaInsets } from "react-native-safe-area-context"; +import Backend from "@backend/backend"; interface SettingProps { title: string; @@ -248,16 +249,16 @@ function Settings() {
- Linking.openURL(process.env.EXPO_PUBLIC_TOS_URL ?? "")}> + Linking.openURL(`${Backend.getBaseUrl()}/tos`)}> - Linking.openURL(process.env.EXPO_PUBLIC_PRIVACY_URL ?? "")}> + Linking.openURL(`${Backend.getBaseUrl()}/privacy`)}> { user && ( - Linking.openURL(process.env.EXPO_PUBLIC_DELETE_ACCOUNT ?? "")}> + Linking.openURL(`${Backend.getBaseUrl()}/delete`)}> ) }