File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import Link from 'next/link';
55import { cratesInfo } from '@/app/lib/all_interface' ;
66import { useParams } from 'next/navigation' ;
77import { Pagination } from 'antd' ;
8- import NewHeader from '@/components/NewHeader' ;
8+ // import NewHeader from '@/components/NewHeader';
99
1010interface CVE {
1111 subtitle ?: string ;
Original file line number Diff line number Diff line change 11import '@/app/ui/global.css' ;
22import { HeaderProvider } from '../../context/CrateContext' ;
3- import Header from '@/components/HeaderWithSearch' ;
3+ // import Header from '@/components/HeaderWithSearch';
44
55
66export const metadata = {
Original file line number Diff line number Diff line change 11"use client" ;
22import '@/app/ui/global.css' ;
3- import NewHeader from '@/components/NewHeader' ;
3+ // import NewHeader from '@/components/NewHeader';
44
55
66
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ import { searchResult } from '@/app/lib/all_interface';
88
99const 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 ) {
Original file line number Diff line number Diff line change 22
33import { useEffect } from 'react' ;
44import { signIn , signOut , useSession } from 'next-auth/react' ;
5- // import Image from 'next/image';
5+ import Image from 'next/image' ;
66import Link from 'next/link' ;
7+
78import { Dropdown } from 'antd' ;
89import 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 }
You can’t perform that action at this time.
0 commit comments