fix version tag

This commit is contained in:
Gabe Yuan
2023-07-21 12:31:21 +08:00
parent bb34ef5b1a
commit 46ba92cdad
23 changed files with 26 additions and 26 deletions

View File

@@ -9,7 +9,6 @@ import { useDarkMode } from "../../hooks/ColorMode";
import LightModeIcon from "@mui/icons-material/LightMode";
import DarkModeIcon from "@mui/icons-material/DarkMode";
import { useI18n } from "../../hooks/I18n";
import { APP_VERSION } from "../../config";
function Header(props) {
const i18n = useI18n();
@@ -36,7 +35,9 @@ function Header(props) {
<MenuIcon />
</IconButton>
</Box>
<Box sx={{ flexGrow: 1 }}>{`${i18n("app_name")} v${APP_VERSION}`}</Box>
<Box sx={{ flexGrow: 1 }}>{`${i18n("app_name")} v${
process.env.REACT_APP_VERSION
}`}</Box>
<IconButton onClick={switchColorMode} color="inherit">
{darkMode ? <LightModeIcon /> : <DarkModeIcon />}
</IconButton>