chore: adjust type

This commit is contained in:
GyDi
2022-11-19 17:22:29 +08:00
parent e19fe5ce1c
commit 6eafb15cf9
26 changed files with 274 additions and 283 deletions

View File

@@ -14,7 +14,7 @@ import ProfileMore from "./profile-more";
import Notice from "../base/base-notice";
interface Props {
items: CmdType.ProfileItem[];
items: IProfileItem[];
chain: string[];
}

View File

@@ -21,7 +21,7 @@ import Notice from "../base/base-notice";
interface Props {
open: boolean;
itemData: CmdType.ProfileItem;
itemData: IProfileItem;
onClose: () => void;
}

View File

@@ -29,7 +29,7 @@ const round = keyframes`
interface Props {
selected: boolean;
itemData: CmdType.ProfileItem;
itemData: IProfileItem;
onSelect: (force: boolean) => void;
}
@@ -117,7 +117,7 @@ const ProfileItem = (props: Props) => {
setAnchorEl(null);
setLoadingCache((cache) => ({ ...cache, [itemData.uid]: true }));
const option: Partial<CmdType.ProfileOption> = {};
const option: Partial<IProfileOption> = {};
if (type === 0) {
option.with_proxy = false;

View File

@@ -21,7 +21,7 @@ import Notice from "../base/base-notice";
interface Props {
selected: boolean;
itemData: CmdType.ProfileItem;
itemData: IProfileItem;
enableNum: number;
logInfo?: [string, string][];
onEnable: () => void;