Skip to content

Commit 137ffff

Browse files
committed
fix : gnb 관련 이슈 수정
1 parent 6db329f commit 137ffff

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

src/components/common/Gnb.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ const Gnb = () => {
5959
</Link>
6060
{!isLoading && (
6161
<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">
6363
<img src="/images/gnb/search.svg" alt="search_icon" className="w-6 h-6" />
64-
</div>
64+
</div> */}
6565
<div
6666
onClick={() => {
6767
if (isLoggedIn) {
@@ -94,4 +94,4 @@ const Gnb = () => {
9494
);
9595
};
9696

97-
export default Gnb;
97+
export default Gnb;

src/components/home/RealtimeRank.tsx

+8-5
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ const RealtimeRank = () => {
1212
const { setKeyword } = useSearchStore();
1313
const { data, isLoading } = getRealtimeRank();
1414

15-
if (isLoading) {
16-
return <RealtimeRankSkeleton />;
17-
}
15+
// if (isLoading) {
16+
// return <RealtimeRankSkeleton />;
17+
// }
1818

19+
//돌아가려면 sm:block
1920
return (
2021
<div className="max-w-[280px] w-full h-[291px] hidden sm:block">
2122
<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">
2324
실시간 검색 순위
2425
</div>
2526
<div className="p-5 shadow-custom-normal rounded-[12px] flex-1">
@@ -30,7 +31,9 @@ const RealtimeRank = () => {
3031
className={`${i < 3 ? 'text-normal text-body6 ' : 'text-gray400 text-body6'}`}>
3132
{item.rank}
3233
</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={() => {
3437
setKeyword(item.keyword);
3538
router.push('/search');
3639
}}>

src/factory/RealtimeRank.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export const getRealtimeRank = () => {
1717

1818
const { data, error, ...queryProps } = useQuery<RealtimeRankType[]>({
1919
queryKey,
20-
queryFn: fetchRealtimeRank
20+
queryFn: fetchRealtimeRank,
21+
retry: false
2122
});
2223

2324
if (error) {

0 commit comments

Comments
 (0)