mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-16 10:03:12 -07:00
feat: i18n fix
This commit is contained in:
parent
d19bf07382
commit
3d67022b38
12 changed files with 25 additions and 31 deletions
|
@ -50,7 +50,7 @@ function HomeLoggedIn() {
|
|||
<Typography variant="h5">{t("controllerNetworks")}</Typography>
|
||||
{networks[0] && t("controllerAddress")}
|
||||
<Box fontWeight="fontWeightBold">
|
||||
{networks[0] && String(networks[0]["id"]).slice(0, 10)}
|
||||
{networks[0] && networks[0]["id"].slice(0, 10)}
|
||||
</Box>
|
||||
</Grid>
|
||||
<Grid item xs="auto">
|
||||
|
|
|
@ -12,7 +12,6 @@ function LogIn() {
|
|||
<Divider orientation="vertical" />
|
||||
</>
|
||||
)}
|
||||
|
||||
<LogInUser />
|
||||
</>
|
||||
);
|
||||
|
|
|
@ -30,7 +30,7 @@ function AddMember({ nwid, callback }) {
|
|||
|
||||
return (
|
||||
<>
|
||||
<Typography>{t("addMemberMan")}</Typography>
|
||||
<Typography>{t("addMemberManually")}</Typography>
|
||||
<List
|
||||
disablePadding={true}
|
||||
style={{
|
||||
|
|
|
@ -51,7 +51,7 @@ function NetworkSettings({ network, setNetwork }) {
|
|||
<AccordionDetails>
|
||||
<Grid container direction="column" spacing={3}>
|
||||
<Grid item>
|
||||
<Typography>{t("netId")}</Typography>
|
||||
<Typography>{t("networkId")}</Typography>
|
||||
<Typography variant="h5">
|
||||
<span>{network["config"]["id"]}</span>
|
||||
</Typography>
|
||||
|
@ -129,7 +129,7 @@ function NetworkSettings({ network, setNetwork }) {
|
|||
color="primary"
|
||||
onChange={handleChange("config", "enableBroadcast", "checkbox")}
|
||||
/>
|
||||
<span>{t("enaBroadcast")}</span>
|
||||
<span>{t("enableBroadcast")}</span>
|
||||
</Grid>
|
||||
{/* TODO: */}
|
||||
{/* <Grid item>
|
||||
|
|
|
@ -16,7 +16,7 @@ import { parseValue, replaceValue, setValue } from "utils/ChangeHelper";
|
|||
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
function SettingsComponent() {
|
||||
function Settings() {
|
||||
const { t, i18n } = useTranslation();
|
||||
|
||||
const handleChange = () => (event) => {
|
||||
|
@ -40,4 +40,4 @@ function SettingsComponent() {
|
|||
);
|
||||
}
|
||||
|
||||
export default SettingsComponent;
|
||||
export default Settings;
|
1
frontend/src/components/Settings/index.jsx
Normal file
1
frontend/src/components/Settings/index.jsx
Normal file
|
@ -0,0 +1 @@
|
|||
export { default } from "./Settings";
|
|
@ -1 +0,0 @@
|
|||
export { default } from "./SettingsComponent";
|
Loading…
Add table
Add a link
Reference in a new issue