File tree 3 files changed +13
-9
lines changed
3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ const Gnb = () => {
59
59
</ Link >
60
60
{ ! isLoading && (
61
61
< div className = "flex items-center gap-6" >
62
- < div onClick = { ( ) => router . push ( '/search' ) } className = "cursor-pointer" >
62
+ { /* <div onClick={() => router.push('/search')} className="cursor-pointer">
63
63
<img src="/images/gnb/search.svg" alt="search_icon" className="w-6 h-6" />
64
- </ div >
64
+ </div> */ }
65
65
< div
66
66
onClick = { ( ) => {
67
67
if ( isLoggedIn ) {
@@ -94,4 +94,4 @@ const Gnb = () => {
94
94
) ;
95
95
} ;
96
96
97
- export default Gnb ;
97
+ export default Gnb ;
Original file line number Diff line number Diff line change @@ -12,14 +12,15 @@ const RealtimeRank = () => {
12
12
const { setKeyword } = useSearchStore ( ) ;
13
13
const { data, isLoading } = getRealtimeRank ( ) ;
14
14
15
- if ( isLoading ) {
16
- return < RealtimeRankSkeleton /> ;
17
- }
15
+ // if (isLoading) {
16
+ // return <RealtimeRankSkeleton />;
17
+ // }
18
18
19
+ //돌아가려면 sm:block
19
20
return (
20
21
< div className = "max-w-[280px] w-full h-[291px] hidden sm:block" >
21
22
< div className = "flex flex-col gap-5" >
22
- < div className = "mt-1 text-body5 text-black sm:text-heading4" >
23
+ < div className = "mt-1 text-body5 text-black sm:text-heading4 hidden " >
23
24
실시간 검색 순위
24
25
</ div >
25
26
< div className = "p-5 shadow-custom-normal rounded-[12px] flex-1" >
@@ -30,7 +31,9 @@ const RealtimeRank = () => {
30
31
className = { `${ i < 3 ? 'text-normal text-body6 ' : 'text-gray400 text-body6' } ` } >
31
32
{ item . rank } 위
32
33
</ div >
33
- < div className = "flex-1 text-body2 text-black truncate cursor-pointer" onClick = { ( ) => {
34
+ < div
35
+ className = "flex-1 text-body2 text-black truncate cursor-pointer"
36
+ onClick = { ( ) => {
34
37
setKeyword ( item . keyword ) ;
35
38
router . push ( '/search' ) ;
36
39
} } >
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ export const getRealtimeRank = () => {
17
17
18
18
const { data, error, ...queryProps } = useQuery < RealtimeRankType [ ] > ( {
19
19
queryKey,
20
- queryFn : fetchRealtimeRank
20
+ queryFn : fetchRealtimeRank ,
21
+ retry : false
21
22
} ) ;
22
23
23
24
if ( error ) {
You can’t perform that action at this time.
0 commit comments