-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from Kernel360/page-main-query-hook
페이지 기능: 홈페이지 쿼리훅 제작
- Loading branch information
Showing
17 changed files
with
416 additions
and
627 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
src/components/shared/product-article/types/ProductArticleType.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { authHandlers } from './authHandler'; | ||
import { homeHandlers } from './homeHandler'; | ||
|
||
export const handlers = [ | ||
...authHandlers, | ||
...homeHandlers, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
import { http, HttpResponse } from 'msw'; | ||
|
||
import { | ||
MOCK_BANNER_DATA, MOCK_PRODUCT_LIST, MOCK_RECOMMEND_PRODUCTS, | ||
} from './mocks'; | ||
|
||
export const homeHandlers = [ | ||
/* ----- 배너 api ----- */ | ||
http.get(`${process.env.NEXT_PUBLIC_BASE_URL}/banner`, () => { | ||
return HttpResponse.json(MOCK_BANNER_DATA); | ||
}), | ||
|
||
/* ----- 추천 제품 정보 api ----- */ | ||
http.get(`${process.env.NEXT_PUBLIC_BASE_URL}/recommend_products`, () => { | ||
return HttpResponse.json(MOCK_RECOMMEND_PRODUCTS); | ||
}), | ||
|
||
/* ----- 제품 목록 정보 api ----- */ | ||
http.get(`${process.env.NEXT_PUBLIC_BASE_URL}/products?sortType=viewcnt_order`, () => { | ||
return HttpResponse.json(MOCK_PRODUCT_LIST); | ||
}), | ||
]; |
Oops, something went wrong.