From 1051d3c2cc7dd5450fc3e2852e083a629c7fbc8b Mon Sep 17 00:00:00 2001 From: jisoung Date: Fri, 2 Jun 2023 20:00:13 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EC=9E=98=EB=AA=BB=EB=90=9C=20?= =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=B0=B8=EC=A1=B0=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/src/components/main/StudentList.tsx | 25 ++++++------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/services/admin/src/components/main/StudentList.tsx b/services/admin/src/components/main/StudentList.tsx index 8860a2e..70ca3cd 100644 --- a/services/admin/src/components/main/StudentList.tsx +++ b/services/admin/src/components/main/StudentList.tsx @@ -49,9 +49,6 @@ import { useSelectedStudentIdStore } from '@/store/useSelectedStudentIdStore'; import { usePointHistoryId } from '@/store/usePointHistoryId'; import { useQueryClient } from '@tanstack/react-query'; import { useDeleteTagIdStore } from '@/store/useDeleteTagId'; -import SideBarPortal from '../sidebar/SideBarPortal'; -import { PointList } from './PointList'; -import { SideBar } from '../sidebar'; import StudentSelectModal from '../modals/StudentSelectModal'; interface Props extends FilterState { @@ -205,6 +202,14 @@ export function StudentList({ const deleteStudentTag = useDeleteStudentTag(selectedStudentId[0], tagId); + const [selectedStudentId, resetStudentId, appendStudentId, deleteStudentId] = + useSelectedStudentIdStore((state) => [ + state.selectedStudentId, + state.resetStudentId, + state.appendStudentId, + state.deleteStudentId, + ]); + const [selectedStudentId, resetStudentId, appendStudentId, deleteStudentId] = useSelectedStudentIdStore((state) => [ state.selectedStudentId, @@ -427,20 +432,6 @@ export function StudentList({ tagModal={tagModal} /> )} - - {openAllPointHistorySideBar && ( - { - setOpenAllPointHistorySideBar(false); - }} - > - - 상/벌점 내역 - - - - )} - {Boolean(selectedStudentId.length) && } );