Skip to content

Commit

Permalink
chore: 불필요한 로그 제거, import 선언문 위치 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyonun321 committed Nov 24, 2024
1 parent 72735c7 commit e31934d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/src/components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { useIsSidebarOpen, useSidebarActions } from "@stores/useSidebarStore";
import { motion } from "framer-motion";
import { IconButton } from "@components/button/IconButton";
import { Modal } from "@components/modal/modal";
import { useModal } from "@components/modal/useModal";
import { MAX_VISIBLE_PAGE } from "@src/constants/page";
import { AuthButton } from "@src/features/auth/AuthButton";
import { Page } from "@src/types/page";
import { useIsSidebarOpen, useSidebarActions } from "@stores/useSidebarStore";
import { MenuButton } from "./MenuButton";
import { PageItem } from "./PageItem";
import { animation, contentVariants, sidebarVariants } from "./Sidebar.animation";
Expand All @@ -22,7 +22,6 @@ export const Sidebar = ({
}) => {
const visiblePages = pages.filter((page) => page.isVisible);
const isMaxVisiblePage = visiblePages.length >= MAX_VISIBLE_PAGE;
console.log(pages, visiblePages, "체크용");
const isSidebarOpen = useIsSidebarOpen();
const { toggleSidebar } = useSidebarActions();
const { isOpen, openModal, closeModal } = useModal();
Expand All @@ -36,7 +35,6 @@ export const Sidebar = ({
};

const handleAddPageButtonClick = () => {
console.log(isMaxVisiblePage, "체크");
if (isMaxVisiblePage) {
openModal();
return;
Expand Down

0 comments on commit e31934d

Please sign in to comment.