diff --git a/Website/src/hoc/withRequireNewVersion.tsx b/Website/src/hoc/withRequireNewVersion.tsx index 51c4103c..214dae21 100644 --- a/Website/src/hoc/withRequireNewVersion.tsx +++ b/Website/src/hoc/withRequireNewVersion.tsx @@ -5,6 +5,7 @@ import { Toolbar } from "@Components/onsenui/Toolbar"; import { useActivity } from "@Hooks/useActivity"; import { BuildConfig } from "@Native/BuildConfig"; import Box from "@mui/material/Box"; +import { useStrings } from "@Hooks/useStrings"; interface HOC_Options
{ versionCode?: number; @@ -14,17 +15,16 @@ interface HOC_Options
{ } function withRequireNewVersion
(opt: HOC_Options
): HOC_Options
["component"] {
+ const { strings } = useStrings();
const {
versionCode = BuildConfig.VERSION_CODE,
component,
title = "New version required!",
- text = (
- <>
- This config requires MMRL above {versionCode} (versionCode)
-
- Check the latest
,
+ url: