Skip to content

Commit

Permalink
Moved version text to Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
nuuuwan committed Aug 3, 2024
1 parent a75a691 commit 75b926f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
11 changes: 11 additions & 0 deletions src/view/molecules/HelpMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import SettingsIcon from "@mui/icons-material/Settings";

import I18N, { t, LANG_LIST } from "../../nonview/base/I18N";
import URLContext from "../../nonview/base/URLContext";
import AppColors from "../_constants/AppColors";
import { Typography } from "@mui/material";
import { VERSION } from "../../nonview/constants";

const MENU_ITEM_LIST = [
{
Expand Down Expand Up @@ -136,6 +139,14 @@ export default function HelpMenu({ onChangeLang }) {
<Divider />
<MenuItemCopyAppLink />
<MenuItemClearCache />
<Typography
variant="caption"
color={AppColors.MoreLight}
fontSize="100%"
sx={{ marginLeft: 2 }}
>
{t("v000", VERSION.DATETIME_STR)}
</Typography>
</Menu>
</Box>
);
Expand Down
9 changes: 2 additions & 7 deletions src/view/pages/HomePage.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import { Component, version } from "react";
import React from "react";
import { Box, Typography } from "@mui/material";
import { Box } from "@mui/material";

import { AudioX } from "../../nonview/base";
import { VERSION } from "../../nonview/constants";

import GroundTruth from "../../nonview/core/GroundTruth";
import { CustomAppBar, HomePageBottomNavigation } from "../../view/molecules";

import PAGE_CONFIG_LIST from "../../view/pages/PAGE_CONFIG_LIST";
import HomePageContext from "../../nonview/core/HomePageContext";
import AppColors from "../_constants/AppColors";
import { t } from "../../nonview/base/I18N";

const STYLE_INNER_PAGE_BOX = {
marginTop: 10,
Expand Down Expand Up @@ -133,9 +131,6 @@ export default class HomePage extends Component {
this
)}
/>
<Typography variant="caption" color={AppColors.MoreLight}>
{t("Last updated 000", VERSION.DATETIME_STR)}
</Typography>
</Box>
);
}
Expand Down

0 comments on commit 75b926f

Please sign in to comment.