feat: profile enhanced ui

This commit is contained in:
GyDi
2022-03-05 22:54:39 +08:00
parent f44039b628
commit a43dab8057
4 changed files with 293 additions and 44 deletions

View File

@@ -50,11 +50,8 @@ const ProfileEdit = (props: Props) => {
} as const;
const type =
form.type ?? form.url
? "remote"
: form.file?.endsWith("js")
? "script"
: "local";
form.type ||
(form.url ? "remote" : form.file?.endsWith("js") ? "script" : "local");
return (
<Dialog open={open} onClose={onClose}>