Skip to content

Commit

Permalink
修复拼写错误和类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyBoyM committed Jan 26, 2022
1 parent 4cc3816 commit 7ceae24
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/component/AppList/index/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
export const AppList = () => {
// 内置应用列表属于不可删改的应用
// const [preAppList, setPreAppList] = useState([])
// todo: 网址文件夹管理器子应用、小游戏
// todo: 网址文件夹管理器()子应用、小游戏
// 用户列表属于可自由改动操作的部分
const [userAppList, setUserAppList] = useLocalStorageState(
"userAppList",
Expand Down Expand Up @@ -55,15 +55,15 @@ export const AppList = () => {
target!.style.transform = "scale(1.6)";
const scalePre = 0.6;
const rect = target?.getBoundingClientRect();
const offet =
const offset =
Math.abs(e.nativeEvent.clientX - rect!.left) / rect!.width;
if (prev) {
prev!.style.transform = `scale(${
1 + scalePre * Math.abs(offet - 1)
1 + scalePre * Math.abs(offset - 1)
}) `;
}
if (next) {
next!.style.transform = `scale(${1 + scalePre * offet})`;
next!.style.transform = `scale(${1 + scalePre * offset})`;
}
}
},
Expand All @@ -78,15 +78,15 @@ export const AppList = () => {
const next = appListAppRef.current[index + 1];
const scalePre = 0.6;
const rect = target?.getBoundingClientRect();
const offet =
const offset =
Math.abs(e.nativeEvent.clientX - rect!.left) / rect!.width;
if (prev) {
prev!.style.transform = `scale(${
1 + scalePre * Math.abs(offet - 1)
1 + scalePre * Math.abs(offset - 1)
}) `;
}
if (next) {
next!.style.transform = `scale(${1 + scalePre * offet})`;
next!.style.transform = `scale(${1 + scalePre * offset})`;
}
}
},
Expand Down
9 changes: 7 additions & 2 deletions src/component/Search/SearchUrlList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@ export const SearchUrlList = (props: any) => {

interface category {
name: string;
urls: [];
urls:
{
title: string;
describtion: string;
url: string;
}[];
}

interface url {
title: string;
description: string;
describtion: string;
url: string;
}

Expand Down

1 comment on commit 7ceae24

@vercel
Copy link

@vercel vercel bot commented on 7ceae24 Jan 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.