Skip to content

Commit

Permalink
add : 출석체크 자동화 및 필요없는 코드 제거
Browse files Browse the repository at this point in the history
add : 출석체크 자동화 및 필요없는 코드 제거
  • Loading branch information
phyuna0525 authored Jul 10, 2024
2 parents 86e2d7c + dc5a501 commit 87fefb5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev -H 0.0.0.0",
"build": "next build",
"start": "next start",
"start": "next dev -H 0.0.0.0",
"lint": "next lint"
},
"dependencies": {
Expand Down
4 changes: 3 additions & 1 deletion src/app/components/common/list/after/check/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ const CheckList: React.FC<State> = ({

const handleChange = (index: number, newState: string) => {
const newStatusList = [...statusList];
newStatusList[index] = newState;
for (let i = index; i < newStatusList.length; i++) {
newStatusList[index] = newState;
}
setStatusList(newStatusList);
};

Expand Down
1 change: 0 additions & 1 deletion src/app/components/common/modal/schedule/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const PostSchedule: React.FC<ModalProps> = ({ onCancel, initialDate }) => {
event_name: scheduleData.event_name,
date: formattedDate,
};
setScheduleData(newScheduleData);
await addScheduleMutate(newScheduleData, {
onSuccess: () => {
location.reload();
Expand Down
2 changes: 1 addition & 1 deletion src/app/login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";
import { NextPage } from "next";
import { QueryClient } from "react-query";
import Input from "../components/common/input";
import Button from "../components/common/Button";
import Picklogo from "../../assets/img/Icon/pickname.svg";
Expand Down Expand Up @@ -28,6 +27,7 @@ const Login: NextPage = () => {
const handleChange = ({ text, name }: ChangeProps) => {
setData({ ...data, [name]: text });
};

const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {
if (event.key === "Enter") {
onClickBtn();
Expand Down
2 changes: 1 addition & 1 deletion src/app/notice/write/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const WriteNotice = () => {
const post = async () => {
if (ColorType() === "primary") {
try {
const result = await uploadNotice(
await uploadNotice(
{ title, content, grade: [selectedGrade] },
{
onSuccess: () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/selfStudyCheck/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const SelfStudyCheck = () => {
const [saveModal, setSaveModal] = useState<boolean>(false);
const { mutate: ChangeMutate } = CheckStatus();
const { mutate: CheckMutate } = ClassStudentCheck();
const { selectedStudents, selectedStudentName, handleAcceptListClick } =
const { selectedStudentName, handleAcceptListClick } =
useAcceptListSelection();

const handleSaveModalConfirm = async () => {
Expand Down

0 comments on commit 87fefb5

Please sign in to comment.