Skip to content

Commit

Permalink
fix: 타입 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sinji2102 committed Dec 3, 2024
1 parent 4ea1411 commit 776b6fe
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/pages/ticketholderlist/TicketHolderList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import MetaTag from "@components/commons/meta/MetaTag";
import { NAVIGATION_STATE } from "@constants/navigationState";
import { useHeader, useModal } from "@hooks";
import useDebounce from "src/hooks/useDebounce";
import { useEffect, useState } from "react";
import { useEffect, useState, ChangeEvent } from "react";
import { CSVLink } from "react-csv";
import { useNavigate, useParams } from "react-router-dom";
import { convertingNumber } from "@constants/convertingNumber";
Expand Down Expand Up @@ -302,7 +302,7 @@ const TicketHolderList = () => {

const debouncedQuery = useDebounce(searchWord, 500);

const handleInputChange = (event) => {
const handleInputChange = (event: ChangeEvent<HTMLInputElement>) => {
setSearchWord(event.target.value);
};

Expand Down Expand Up @@ -356,10 +356,10 @@ const TicketHolderList = () => {
const navigate = useNavigate();

const handleNavigateBack = () => {
if (status === "DEFAULT") {
navigate("/gig-manage");
} else {
if (status !== "DEFAULT") {
setStatus("DEFAULT");
} else {
navigate("/gig-manage");
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface FilterBottomSheetProps {
totalScheduleCount: number;
children?: ReactNode;
onClickOutside?: () => void;
filterList: FilterListType[];
filterList: FilterListType;
handleFilter: (scheduleNumber: number[], bookingStatus: string[]) => void;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as S from "./ManageCardContainer.styled";
import { PaymentType } from "@pages/ticketholderlist/TicketHolderList";

interface ManagerCardContainerProps {
name: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Children, ReactNode } from "react";
import { ReactNode } from "react";
import * as S from "./ManageCardMain.styled";

export interface ManageCardMainProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface SearchBarProps {
status: string;
searchWord: string;
handleFilterSheet: () => void;
handleInputChange: () => void;
handleInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
}

// TODO: 필터 적용되었을 때 아웃라인 색상 적용 -> 기능 붙일 때 같이 하기
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from "react";
import * as S from "./SelectedChips.styled";
import { FilterListType, PaymentType } from "@pages/ticketholderlist/TicketHolderList";
import { convertingBookingStatus } from "@constants/convertingBookingStatus";

interface SelectedChipsProps {
filterList: FilterListType[];
filterList: FilterListType;
handleFilter: (scheduleNumber: number[], bookingStatus: string[]) => void;
}

Expand Down

0 comments on commit 776b6fe

Please sign in to comment.