WashFit 랭킹
diff --git a/src/components/shared/carousel/RecommendList.scss b/src/components/shared/carousel/RecommendList.scss
index 27c39e48..5e5624d7 100644
--- a/src/components/shared/carousel/RecommendList.scss
+++ b/src/components/shared/carousel/RecommendList.scss
@@ -1,37 +1,10 @@
-/* stylelint-disable selector-class-pattern */
-
-.recommend-slide {
- .slick-list {
- box-sizing: border-box;
- padding: 0 var(--default-padding);
-
- .slick-track {
- .slick-slide {
- width: 85px !important;
- margin-right: 8px;
-
- & > div {
- a {
- box-sizing: border-box;
- text-align: center;
-
- .img-container {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 100%;
- height: 85px;
- margin: 0 auto 3px;
- border-radius: 16px;
- background-color: #eff9ff;
-
- img {
- vertical-align: top;
- }
- }
- }
- }
- }
- }
+.imageContainer {
+ display: flex !important;
+ flex-direction: column !important;
+ align-items: center !important;
+ text-align: center;
+
+ span {
+ width: 85px;
}
}
diff --git a/src/components/shared/carousel/RecommendList.tsx b/src/components/shared/carousel/RecommendList.tsx
index f745d43d..ba871e0b 100644
--- a/src/components/shared/carousel/RecommendList.tsx
+++ b/src/components/shared/carousel/RecommendList.tsx
@@ -9,6 +9,8 @@ import Link from 'next/link';
import { RecommendProductsType } from '@remote/api/types/home';
import Text from '@shared/text/Text';
+import Spacing from '../spacing/Spacing';
+
const settings = {
infinite: true,
slidesToShow: 4,
@@ -19,6 +21,7 @@ const settings = {
arrows: false,
speed: 2000,
autoplaySpeed: 5000,
+ swipeToSlide: true,
};
// eslint-disable-next-line max-len
@@ -29,16 +32,15 @@ function RecommendList({ recommendProductsData }: { recommendProductsData: Recom
{recommendList?.map((slide) => {
return (
-
-
-
-
+
+
+
{slide.productName}
);
diff --git a/src/hooks/withAuth.tsx b/src/hooks/withAuth.tsx
index 807cfab4..0ccafb81 100644
--- a/src/hooks/withAuth.tsx
+++ b/src/hooks/withAuth.tsx
@@ -1,6 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { ComponentType, useEffect } from 'react';
-import { toast } from 'react-toastify';
import { useRouter } from 'next/navigation';
@@ -18,8 +17,7 @@ function withAuth>(
useEffect(() => {
if (userId == null) {
- router.push('/');
- toast.info('로그인 해주세요.');
+ router.replace('/login');
}
}, [userId, router]);