From 4eb89022e0d669742dd8a07530eb796c38f92555 Mon Sep 17 00:00:00 2001 From: h8570rg Date: Mon, 5 Feb 2024 23:25:08 +0900 Subject: [PATCH 1/2] fix: delete unused file; --- app/(app)/matches/[matchId]/MatchAddButton.tsx | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 app/(app)/matches/[matchId]/MatchAddButton.tsx diff --git a/app/(app)/matches/[matchId]/MatchAddButton.tsx b/app/(app)/matches/[matchId]/MatchAddButton.tsx deleted file mode 100644 index a509f3c..0000000 --- a/app/(app)/matches/[matchId]/MatchAddButton.tsx +++ /dev/null @@ -1,11 +0,0 @@ -"use client"; - -import { Button } from "@nextui-org/react"; - -export default function MatchAddButton({ className }: { className?: string }) { - return ( - - ); -} From 9eb255b166fa04fd0044c7ad89f3ff839f46aab5 Mon Sep 17 00:00:00 2001 From: h8570rg Date: Mon, 12 Feb 2024 23:11:30 +0900 Subject: [PATCH 2/2] fix: player add --- app/(app)/friends/page.tsx | 2 +- .../matches/[matchId]/GameInputModal.tsx | 6 +- .../[matchId]/MatchPlayerInputModal.tsx | 119 ---------------- .../AnonymousPlayerSelect.tsx | 50 +++++++ .../MatchPlayerInputModal/ModalController.tsx | 25 ++++ .../[matchId]/MatchPlayerInputModal/Tabs.tsx | 29 ++++ .../MatchPlayerInputModal/UserSelect.tsx | 129 ++++++++++++++++++ .../MatchPlayerInputModal/actions.ts | 106 ++++++++++++++ .../[matchId]/MatchPlayerInputModal/index.tsx | 34 +++++ .../[matchId]/MatchTable/AddGameButton.tsx | 34 +++++ .../[matchId]/MatchTable/AddPlayerButton.tsx | 40 ++++++ .../{MatchTable.tsx => MatchTable/index.tsx} | 69 +--------- app/(app)/matches/[matchId]/page.tsx | 19 ++- app/api/matches/[matchId]/players/route.ts | 15 -- app/api/profiles/route.ts | 11 -- components/User/index.tsx | 8 +- lib/hooks/api/games.ts | 17 +-- lib/hooks/api/match.ts | 13 +- lib/hooks/api/profile.ts | 21 --- lib/services/match.ts | 99 ++++++++------ lib/services/matches.ts | 3 +- 21 files changed, 536 insertions(+), 313 deletions(-) delete mode 100644 app/(app)/matches/[matchId]/MatchPlayerInputModal.tsx create mode 100644 app/(app)/matches/[matchId]/MatchPlayerInputModal/AnonymousPlayerSelect.tsx create mode 100644 app/(app)/matches/[matchId]/MatchPlayerInputModal/ModalController.tsx create mode 100644 app/(app)/matches/[matchId]/MatchPlayerInputModal/Tabs.tsx create mode 100644 app/(app)/matches/[matchId]/MatchPlayerInputModal/UserSelect.tsx create mode 100644 app/(app)/matches/[matchId]/MatchPlayerInputModal/actions.ts create mode 100644 app/(app)/matches/[matchId]/MatchPlayerInputModal/index.tsx create mode 100644 app/(app)/matches/[matchId]/MatchTable/AddGameButton.tsx create mode 100644 app/(app)/matches/[matchId]/MatchTable/AddPlayerButton.tsx rename app/(app)/matches/[matchId]/{MatchTable.tsx => MatchTable/index.tsx} (60%) delete mode 100644 app/api/matches/[matchId]/players/route.ts delete mode 100644 app/api/profiles/route.ts delete mode 100644 lib/hooks/api/profile.ts diff --git a/app/(app)/friends/page.tsx b/app/(app)/friends/page.tsx index d0ae52f..f9f512d 100644 --- a/app/(app)/friends/page.tsx +++ b/app/(app)/friends/page.tsx @@ -17,7 +17,7 @@ export default async function Page() {