From 27f5f78a2aa72d5a0860d2c95e9c8dc77725f68c Mon Sep 17 00:00:00 2001 From: jhj2713 Date: Wed, 21 Aug 2024 15:27:44 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20submit=20=EC=97=94=ED=84=B0=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/pages/LotteryParticipantList/index.tsx | 15 ++++++++++----- admin/src/pages/LotteryWinnerList/index.tsx | 15 ++++++++++----- admin/src/pages/RushWinnerList/index.tsx | 14 ++++++++++---- 3 files changed, 30 insertions(+), 14 deletions(-) diff --git a/admin/src/pages/LotteryParticipantList/index.tsx b/admin/src/pages/LotteryParticipantList/index.tsx index 64273ccb..70c4a208 100644 --- a/admin/src/pages/LotteryParticipantList/index.tsx +++ b/admin/src/pages/LotteryParticipantList/index.tsx @@ -1,4 +1,4 @@ -import { useEffect, useMemo, useRef, useState } from "react"; +import { FormEvent, useEffect, useMemo, useRef, useState } from "react"; import { useCookies } from "react-cookie"; import { useNavigate } from "react-router-dom"; import { LotteryAPI } from "@/apis/lotteryAPI"; @@ -123,6 +123,11 @@ export default function LotteryParticipantList() { patchLotteryExpectation(id); }; + const handleSubmitSearch = (e: FormEvent) => { + e.preventDefault(); + handleRefetch(); + }; + const expectations = useMemo( () => expectation.map((participant) => [ @@ -176,15 +181,15 @@ export default function LotteryParticipantList() {

-
+
- -
+ - diff --git a/admin/src/pages/LotteryWinnerList/index.tsx b/admin/src/pages/LotteryWinnerList/index.tsx index d8135d53..112f665d 100644 --- a/admin/src/pages/LotteryWinnerList/index.tsx +++ b/admin/src/pages/LotteryWinnerList/index.tsx @@ -1,4 +1,4 @@ -import { useEffect, useMemo, useRef, useState } from "react"; +import { FormEvent, useEffect, useMemo, useRef, useState } from "react"; import { useCookies } from "react-cookie"; import { useNavigate } from "react-router-dom"; import { LotteryAPI } from "@/apis/lotteryAPI"; @@ -132,6 +132,11 @@ export default function LotteryWinnerList() { patchLotteryExpectation(id); }; + const handleSubmitSearch = (e: FormEvent) => { + e.preventDefault(); + handleRefetch(); + }; + const expectations = useMemo( () => expectation.map((winner) => [ @@ -183,15 +188,15 @@ export default function LotteryWinnerList() {

당첨자 리스트

-
+
- -
+
- diff --git a/admin/src/pages/RushWinnerList/index.tsx b/admin/src/pages/RushWinnerList/index.tsx index a77bb9d4..aa3827f1 100644 --- a/admin/src/pages/RushWinnerList/index.tsx +++ b/admin/src/pages/RushWinnerList/index.tsx @@ -1,4 +1,4 @@ -import { useEffect, useMemo, useRef, useState } from "react"; +import { FormEvent, useEffect, useMemo, useRef, useState } from "react"; import { useCookies } from "react-cookie"; import { useLocation, useNavigate } from "react-router-dom"; import { RushAPI } from "@/apis/rushAPI"; @@ -137,6 +137,11 @@ export default function RushWinnerList() { setSelectedOptionIdx(() => idx); }; + const handleSubmitSearch = (e: FormEvent) => { + e.preventDefault(); + handleSearchPhoneNumber(); + }; + const optionTitleList = useMemo( () => options @@ -198,21 +203,22 @@ export default function RushWinnerList() {

-
+
- -
+