refactor: something

This commit is contained in:
GyDi
2022-01-16 18:30:25 +08:00
parent 2eb3e1aef6
commit ab82d2af4f
10 changed files with 32 additions and 24 deletions

View File

@@ -11,7 +11,7 @@ import { getProxies, updateProxy } from "../services/api";
import noop from "../utils/noop";
import Notice from "../components/notice";
import BasePage from "../components/base-page";
import ProfileItemComp from "../components/profile-item";
import ProfileItem from "../components/profile-item";
const ProfilePage = () => {
const [url, setUrl] = useState("");
@@ -121,7 +121,7 @@ const ProfilePage = () => {
<Grid container spacing={3}>
{profiles?.items?.map((item, idx) => (
<Grid item xs={12} sm={6} key={item.file}>
<ProfileItemComp
<ProfileItem
index={idx}
selected={profiles.current === idx}
itemData={item}