Skip to content

Commit

Permalink
fix :: warning ์ œ๊ฑฐ
Browse files Browse the repository at this point in the history
  • Loading branch information
wjzlskxk committed Nov 4, 2024
1 parent 4d1e38c commit 76f3b7c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/components/Out/OutSleeping/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Button, SearchBar, Select } from "@b1nd/b1nd-dodamdodam-ui";
import * as S from "./style";
import { Suspense, useEffect, useState } from "react";
import Calendars from "components/common/Calendars";
import { Suspense, useState } from "react";
import { useRecoilState } from "recoil";
import { OutSleepingSelectIdAtom, SelectApprovalAtom, SelectGradeAtom, UploadDateAtom } from "stores/Out/out.store";
import TableAttribute from "components/common/TableAttribute";
Expand All @@ -20,7 +19,6 @@ import { offBaseMemberCalc } from "utils/Out/offbaseMemberCalc";

const OutSleeping = () => {
const [studentName, setStudentName] = useState("");
const [isOpen, setIsOpen] = useState(false);
const [uploadDate, setUploadDate] = useRecoilState<string>(UploadDateAtom);
const [room, setRoom] = useRecoilState(PointSelectRoom);
const [selectGrade, setSelectGrade] = useRecoilState(SelectGradeAtom);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Point/PointModal/GivePointStudentModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const GivePointStudentModal = ({ pointQueryParam, close, title }: StudentPointIn
items={
pointReasonsData
? pointReasonsData.data!.map(
(data) => data.reason + ":" + ` ${coverPointTypeToKorean(data.scoreType)}` + `${data.score}์ `,
(data) => `${data.reason}: ${coverPointTypeToKorean(data.scoreType)}${data.score}์ `,
)
: []
}
Expand Down
3 changes: 2 additions & 1 deletion src/repositories/OffBaseMeal/offbasemealRepositoryImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ class OffBaseMealRepositoryImpl implements OffBaseMealRepository {
}
}

export default new OffBaseMealRepositoryImpl();
const offbaseMealRepository = new OffBaseMealRepositoryImpl();
export default offbaseMealRepository
4 changes: 2 additions & 2 deletions src/utils/Transform/csvTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useGetPointAllMemberQuery } from "queries/Point/point.query";
import { useEffect, useState } from "react";
import { useRecoilValue } from "recoil";
import { PointSelectGrade, PointSelectRoom, PointStduentSearch } from "stores/Point/point.store";
import { Point, PointType } from "types/Point/point.type";
import { Point } from "types/Point/point.type";
import { changeGrade, changeRoom } from "utils/Member/changeGrade";
import { sortStudentGrade } from "utils/Member/sortStudentGrade";
import { searchName } from "utils/common/searchName";
Expand Down Expand Up @@ -35,7 +35,7 @@ export const PointDataToCsvData = (pointQueryParams: string) => {
์ƒ์‡„์ : item.offset,
}));
setCsvData(parsedCsvData!);
}, [selectGrade, selectRoom, searchValue, pointQueryParams]);
}, [selectGrade, selectRoom, searchValue, pointQueryParams, studentPointData?.data]);

return { csvData, pointData };
};

0 comments on commit 76f3b7c

Please sign in to comment.