File tree Expand file tree Collapse file tree 12 files changed +43
-25
lines changed
carousel/curationCarousel Expand file tree Collapse file tree 12 files changed +43
-25
lines changed Original file line number Diff line number Diff line change @@ -5,22 +5,31 @@ const withVanillaExtract = createVanillaExtractPlugin();
55
66const nextConfig : NextConfig = {
77 reactStrictMode : true ,
8+
89 images : {
910 domains : [ 'noms.templestay.com' , 'www.templestay.com' ] ,
1011 } ,
12+
1113 webpack ( config ) {
12- config . module . rules . push ( {
13- test : / \. s v g $ / ,
14- issuer : / \. [ j t ] s x ? $ / ,
15- use : [
16- {
17- loader : '@svgr/webpack' ,
18- options : {
19- memo : true ,
20- } ,
21- } ,
22- ] ,
23- } ) ;
14+ const fileLoaderRule = config . module . rules . find ( ( rule ) => rule . test ?. test ?.( '.svg' ) ) ;
15+
16+ config . module . rules . push (
17+ {
18+ ...fileLoaderRule ,
19+ test : / \. s v g $ / i,
20+ resourceQuery : / u r l / ,
21+ } ,
22+
23+ {
24+ test : / \. s v g $ / i,
25+ issuer : fileLoaderRule . issuer ,
26+ resourceQuery : { not : [ ...fileLoaderRule . resourceQuery . not , / u r l / ] } ,
27+ use : [ '@svgr/webpack' ] ,
28+ } ,
29+ ) ;
30+
31+ fileLoaderRule . exclude = / \. s v g $ / i;
32+
2433 return config ;
2534 } ,
2635} ;
Original file line number Diff line number Diff line change 1- 'use client' ;
2-
3- import { useGetNickname } from '@apis/user' ;
41import HomeClient from '@app/HomeClient' ;
52import LookCard from '@components/card/lookCard/LookCard' ;
63import MapCard from '@components/card/mapCard/MapCard' ;
74import CurationCarousel from '@components/carousel/curationCarousel/CurationCarousel' ;
85import DetailTitle from '@components/detailTitle/DetailTitle' ;
9- import ExceptLayout from '@components/except/exceptLayout/ExceptLayout' ;
106import Footer from '@components/footer/Footer' ;
117import Header from '@components/header/Header' ;
12- import { getStorageValue } from '@hooks/useLocalStorage ' ;
8+ import { cookies } from 'next/headers ' ;
139
1410import * as styles from './homePage.css' ;
1511
16- const HomePage = ( ) => {
17- const userId = Number ( getStorageValue ( 'userId' ) ) ;
18- const { data, isLoading } = useGetNickname ( userId ) ;
19-
20- if ( isLoading ) {
21- return < ExceptLayout type = "loading" /> ;
22- }
12+ const HomePage = async ( ) => {
13+ const cookieStore = await cookies ( ) ;
14+ const userName = cookieStore . get ( 'userNickname' ) ?. value ;
2315
2416 return (
2517 < div className = { styles . homeWrapper } >
2618 < Header />
27- < LookCard name = { data ?. nickname } />
19+ < LookCard name = { userName } />
2820 < MapCard />
2921 < div className = { styles . curationCarouselStyle } >
3022 < DetailTitle title = "μ λ‘κ° PICK!" />
Original file line number Diff line number Diff line change 1+ 'use client' ;
2+
13import BasicBtn from '@components/common/button/basicBtn/BasicBtn' ;
24import useFilter from '@hooks/useFilter' ;
35import useEventLogger from 'src/gtm/hooks/useEventLogger' ;
Original file line number Diff line number Diff line change 1+ 'use client' ;
2+
13import mapImage from '@assets/images/home_card_map.png' ;
24import LocBtn from '@components/card/mapCard/LocBtn' ;
35import { REGION_INFOS , REGION_LABEL_MAP } from '@constants/regionInfos' ;
Original file line number Diff line number Diff line change 1+ 'use client' ;
2+
13import CurationCard from '@components/curation/curationCard/CurationCard' ;
24import { CURATION_INFO } from '@constants/curationInfo' ;
35import useCarousel from '@hooks/useCarousel' ;
Original file line number Diff line number Diff line change 1+ 'use client' ;
2+
13import Icon from '@assets/svgs' ;
24import useEventLogger from 'src/gtm/hooks/useEventLogger' ;
35
Original file line number Diff line number Diff line change 1+ 'use client' ;
2+
13import Icon from '@assets/svgs' ;
24import useNavigateTo from '@hooks/useNavigateTo' ;
35
Original file line number Diff line number Diff line change 11'use client' ;
2+
23import Icon from '@assets/svgs' ;
34import useFilter from '@hooks/useFilter' ;
45import { usePathname } from 'next/navigation' ;
Original file line number Diff line number Diff line change 11'use client' ;
2+
23import { useState , useRef } from 'react' ;
34
45interface UseCarouselProps {
Original file line number Diff line number Diff line change 1+ 'use client' ;
2+
13import useFetchFilteredList from '@apis/filter' ;
24import { fetchFilteredCount } from '@apis/filter/axios' ;
35import useLocalStorage , { getStorageValue } from '@hooks/useLocalStorage' ;
You canβt perform that action at this time.
0 commit comments