mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2024-09-20 06:56:05 +08:00
feat: i18n managedroutes
This commit is contained in:
parent
83502755d7
commit
2cf3a64cc8
|
@ -16,7 +16,10 @@ import DataTable from "react-data-table-component";
|
|||
|
||||
import { validateIP, normilizeIP, validateCIDR } from "utils/IP";
|
||||
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
function ManagedRoutes({ routes, handleChange }) {
|
||||
const { t, i18n } = useTranslation();
|
||||
const [destination, setDestination] = useState("");
|
||||
const [via, setVia] = useState("");
|
||||
|
||||
|
@ -84,13 +87,13 @@ function ManagedRoutes({ routes, handleChange }) {
|
|||
return (
|
||||
<>
|
||||
<Typography style={{ paddingBottom: "10px" }}>
|
||||
Managed Routes ({routes.length + "/128"})
|
||||
{t("managedRoutes")} ({routes.length + "/128"})
|
||||
</Typography>
|
||||
<Box border={1} borderColor="grey.300">
|
||||
<Grid item style={{ margin: "10px" }}>
|
||||
<DataTable noHeader={true} columns={columns} data={routes} />
|
||||
<Divider />
|
||||
<Typography>Add Routes</Typography>
|
||||
<Typography>{t("addRoute")}</Typography>
|
||||
<List
|
||||
style={{
|
||||
display: "flex",
|
||||
|
|
Loading…
Reference in a new issue