mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
fix: mui grid has been deprecated
This commit is contained in:
parent
9d9cf27460
commit
c37f22dc65
|
@ -8,7 +8,8 @@ import { useLockFn } from "ahooks";
|
|||
import {
|
||||
TextField,
|
||||
Button,
|
||||
Grid,
|
||||
Grid2,
|
||||
Box,
|
||||
Stack,
|
||||
IconButton,
|
||||
InputAdornment,
|
||||
|
@ -125,10 +126,10 @@ export const BackupConfigViewer = memo(
|
|||
|
||||
return (
|
||||
<form onSubmit={(e) => e.preventDefault()}>
|
||||
<Grid container spacing={2}>
|
||||
<Grid item xs={12} sm={9}>
|
||||
<Grid container spacing={2}>
|
||||
<Grid item xs={12}>
|
||||
<Grid2 container spacing={2}>
|
||||
<Grid2 size={{ xs: 12, sm: 9 }}>
|
||||
<Grid2 container spacing={2}>
|
||||
<Grid2 size={{ xs: 12 }}>
|
||||
<TextField
|
||||
fullWidth
|
||||
label={t("WebDAV Server URL")}
|
||||
|
@ -140,8 +141,8 @@ export const BackupConfigViewer = memo(
|
|||
spellCheck="false"
|
||||
inputRef={urlRef}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item xs={6}>
|
||||
</Grid2>
|
||||
<Grid2 size={{ xs: 6 }}>
|
||||
<TextField
|
||||
label={t("Username")}
|
||||
variant="outlined"
|
||||
|
@ -152,8 +153,8 @@ export const BackupConfigViewer = memo(
|
|||
spellCheck="false"
|
||||
inputRef={usernameRef}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item xs={6}>
|
||||
</Grid2>
|
||||
<Grid2 size={{ xs: 6 }}>
|
||||
<TextField
|
||||
label={t("Password")}
|
||||
type={showPassword ? "text" : "password"}
|
||||
|
@ -177,10 +178,10 @@ export const BackupConfigViewer = memo(
|
|||
),
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid item xs={12} sm={3}>
|
||||
</Grid2>
|
||||
</Grid2>
|
||||
</Grid2>
|
||||
<Grid2 size={{ xs: 12, sm: 3 }}>
|
||||
<Stack
|
||||
direction="column"
|
||||
justifyContent="center"
|
||||
|
@ -212,8 +213,8 @@ export const BackupConfigViewer = memo(
|
|||
</Button>
|
||||
)}
|
||||
</Stack>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid2>
|
||||
</Grid2>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user