change textfield's theme
This commit is contained in:
@@ -115,7 +115,7 @@ const DirectLinks = () => {
|
||||
label={t("modals.sourceLink")}
|
||||
multiline
|
||||
value={contents}
|
||||
variant="outlined"
|
||||
variant="filled"
|
||||
fullWidth
|
||||
slotProps={{
|
||||
htmlInput: { readonly: true },
|
||||
|
||||
@@ -187,7 +187,7 @@ const ShareSettingContent = ({ setting, file, editing, onSettingChange }: ShareS
|
||||
},
|
||||
}}
|
||||
value={setting.password ?? ""}
|
||||
onChange={(e) => {
|
||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const value = e.target.value.trim();
|
||||
if (!/^[a-zA-Z0-9]*$/.test(value) || value.length > 32) return;
|
||||
onSettingChange({ ...setting, password: value });
|
||||
@@ -292,7 +292,7 @@ const ShareSettingContent = ({ setting, file, editing, onSettingChange }: ShareS
|
||||
getOptionLabel={(option: string | valueOption) => (typeof option === "string" ? option : t(option.label))}
|
||||
disableClearable
|
||||
options={expireOptions}
|
||||
renderInput={(params) => <TextField sx={{ width: 150 }} {...params} variant={"standard"} />}
|
||||
renderInput={(params) => <TextField sx={{ width: 150 }} {...params} variant={"filled"} />}
|
||||
/>
|
||||
</FormControl>
|
||||
<Typography>{t("application:modals.expireSuffix")}</Typography>
|
||||
@@ -368,7 +368,7 @@ const ShareSettingContent = ({ setting, file, editing, onSettingChange }: ShareS
|
||||
}
|
||||
disableClearable
|
||||
options={downloadOptions}
|
||||
renderInput={(params) => <TextField sx={{ width: 200 }} {...params} variant={"standard"} />}
|
||||
renderInput={(params) => <TextField sx={{ width: 200 }} {...params} variant={"filled"} />}
|
||||
/>
|
||||
</FormControl>
|
||||
<Typography>{t("application:modals.expireSuffix")}</Typography>
|
||||
|
||||
Reference in New Issue
Block a user