Skip to content

Commit 41d966d

Browse files
committed
debug
1 parent cd46df2 commit 41d966d

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

app/[nsfront]/[nsbehind]/[name]/[version]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Link from 'next/link';
55
import { cratesInfo } from '@/app/lib/all_interface';
66
import { useParams } from 'next/navigation';
77
import { Pagination } from 'antd';
8-
import NewHeader from '@/components/NewHeader';
8+
// import NewHeader from '@/components/NewHeader';
99

1010
interface CVE {
1111
subtitle?: string;

app/[nsfront]/[nsbehind]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import '@/app/ui/global.css';
22
import { HeaderProvider } from '../../context/CrateContext';
3-
import Header from '@/components/HeaderWithSearch';
3+
// import Header from '@/components/HeaderWithSearch';
44

55

66
export const metadata = {

app/search/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22
import '@/app/ui/global.css';
3-
import NewHeader from '@/components/NewHeader';
3+
// import NewHeader from '@/components/NewHeader';
44

55

66

app/search/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import { searchResult } from '@/app/lib/all_interface';
88

99
const Search = () => {
1010
const [results, setResults] = useState<searchResult | null>(null);
11-
const [currentPage, setCurrentPage] = useState(1);
11+
// const [currentPage, setCurrentPage] = useState(1);
1212
const [loading, setLoading] = useState(false);
1313
const searchParams = useSearchParams();
1414
const name = searchParams.get('crate_name');
1515
const [activeTab, setActiveTab] = useState('All');
1616
const [localCurrentPage, setLocalCurrentPage] = useState(1); // 本地分页状态
17-
const itemsPerPage = 10; // 每页显示10条
17+
// const itemsPerPage = 10; // 每页显示10条
1818

1919
useEffect(() => {
2020
if (name) {

components/sign-in.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
import { useEffect } from 'react';
44
import { signIn, signOut, useSession } from 'next-auth/react';
5-
// import Image from 'next/image';
5+
import Image from 'next/image';
66
import Link from 'next/link';
7+
78
import { Dropdown } from 'antd';
89
import type { MenuProps } from 'antd';
910

@@ -96,7 +97,7 @@ export default function SignInButton() {
9697
/>
9798
)} */}
9899
{session.user?.image && (
99-
<img
100+
<Image
100101
src={session.user.image}
101102
alt={session.user.name || 'User avatar'}
102103
width={32}

0 commit comments

Comments
 (0)