Skip to content

Commit b46ea9f

Browse files
committed
fix(home): preview 배포 타입 오류 수정
useReducedMotion 반환값이 boolean | null이라서 Vercel 타입 검사에서 useSoftRevealMotion 호출이 실패했어요. null 병합으로 boolean 타입을 고정해서 preview 빌드가 안정적으로 통과하게 했어요.
1 parent 2553ed3 commit b46ea9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/features/home/ui/sections/HeroSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export default function HeroSection({
226226
popularPosts,
227227
}: HeroSectionProps) {
228228
const [currentPage, setCurrentPage] = useState(1);
229-
const prefersReducedMotion = useReducedMotion();
229+
const prefersReducedMotion = useReducedMotion() ?? false;
230230
const articlePanelRef = useRef<HTMLElement>(null);
231231
const popularPanelRef = useRef<HTMLElement>(null);
232232
const seriesPanelRef = useRef<HTMLElement>(null);

0 commit comments

Comments
 (0)