Skip to content

Commit

Permalink
fix : 잘못된 모듈 참조 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jisoung0405 committed Jun 2, 2023
1 parent e5d8f24 commit 1051d3c
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions services/admin/src/components/main/StudentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -427,20 +432,6 @@ export function StudentList({
tagModal={tagModal}
/>
)}
<SideBarPortal>
{openAllPointHistorySideBar && (
<SideBar
close={() => {
setOpenAllPointHistorySideBar(false);
}}
>
<Text color="gray10" size="titleL" margin={['top', 50]}>
상/벌점 내역
</Text>
<PointList />
</SideBar>
)}
</SideBarPortal>
{Boolean(selectedStudentId.length) && <StudentSelectModal />}
</_Wrapper>
);
Expand Down

0 comments on commit 1051d3c

Please sign in to comment.