diff --git a/src/components/profile/enhanced.tsx b/src/components/profile/enhanced.tsx index ea3dfd2..b226fd0 100644 --- a/src/components/profile/enhanced.tsx +++ b/src/components/profile/enhanced.tsx @@ -1,5 +1,6 @@ import useSWR from "swr"; import { useLockFn } from "ahooks"; +import { useTranslation } from "react-i18next"; import { Box, Grid, IconButton, Stack } from "@mui/material"; import { RestartAltRounded } from "@mui/icons-material"; import { @@ -20,6 +21,7 @@ interface Props { const EnhancedMode = (props: Props) => { const { items, chain } = props; + const { t } = useTranslation(); const { mutate: mutateProfiles } = useSWR("getProfiles", getProfiles); const { data: chainLogs = {}, mutate: mutateLogs } = useSWR( "getRuntimeLogs", @@ -96,7 +98,7 @@ const EnhancedMode = (props: Props) => { diff --git a/src/components/profile/info-editor.tsx b/src/components/profile/info-editor.tsx index f34644d..2bb2c1d 100644 --- a/src/components/profile/info-editor.tsx +++ b/src/components/profile/info-editor.tsx @@ -82,7 +82,7 @@ const InfoEditor = (props: Props) => { @@ -90,7 +90,7 @@ const InfoEditor = (props: Props) => { setForm({ name: e.target.value })} onKeyDown={(e) => e.key === "Enter" && onUpdate()} @@ -98,7 +98,7 @@ const InfoEditor = (props: Props) => { setForm({ desc: e.target.value })} onKeyDown={(e) => e.key === "Enter" && onUpdate()} @@ -107,7 +107,7 @@ const InfoEditor = (props: Props) => { {type === "remote" && ( setForm({ url: e.target.value })} onKeyDown={(e) => e.key === "Enter" && onUpdate()} @@ -128,7 +128,7 @@ const InfoEditor = (props: Props) => { {((type === "remote" && showOpt) || type === "local") && ( { const str = e.target.value?.replace(/\D/, ""); diff --git a/src/components/profile/profile-new.tsx b/src/components/profile/profile-new.tsx index fdd9f10..dfe24bb 100644 --- a/src/components/profile/profile-new.tsx +++ b/src/components/profile/profile-new.tsx @@ -91,7 +91,7 @@ const ProfileNew = (props: Props) => { Type