refactor: api and command

This commit is contained in:
GyDi
2021-12-25 22:33:29 +08:00
parent afa56e916e
commit e76855ad0e
22 changed files with 369 additions and 329 deletions

View File

@@ -10,7 +10,7 @@ import {
IconButton,
} from "@mui/material";
import { MenuRounded } from "@mui/icons-material";
import { ProfileItem } from "../services/command";
import { CmdType } from "../services/types";
import parseTraffic from "../utils/parse-traffic";
import relativeTime from "dayjs/plugin/relativeTime";
@@ -29,7 +29,7 @@ const Wrapper = styled(Box)(({ theme }) => ({
interface Props {
selected: boolean;
itemData: ProfileItem;
itemData: CmdType.ProfileItem;
onClick: () => void;
onUpdate: () => void;
}