From 6de7adb0dcb99ae50b567d415f8a93bc0fe862c6 Mon Sep 17 00:00:00 2001 From: kimnamheeee Date: Wed, 11 Feb 2026 17:33:47 +0900 Subject: [PATCH 01/10] style(game-setup): fix teamSidebar style --- .../app/create/components/questionList.tsx | 23 ++--------- service/app/src/app/game/[gameId]/layout.tsx | 2 +- .../[gameId]/setup/components/teamSidebar.tsx | 27 +++++-------- .../app/src/app/game/[gameId]/setup/page.tsx | 2 +- .../src/shared/ui/floatingAddButton/index.tsx | 40 +++++++++++++++++++ 5 files changed, 56 insertions(+), 38 deletions(-) create mode 100644 service/app/src/shared/ui/floatingAddButton/index.tsx diff --git a/service/app/src/app/create/components/questionList.tsx b/service/app/src/app/create/components/questionList.tsx index 3abbf1ae..527d6b79 100644 --- a/service/app/src/app/create/components/questionList.tsx +++ b/service/app/src/app/create/components/questionList.tsx @@ -1,12 +1,10 @@ "use client" -import { PrimaryBoxButton } from "@ject-5-fe/design/components/button" -import { StickyActionBar } from "@ject-5-fe/design/components/stickyActionBar" -import { Add } from "@ject-5-fe/design/icons" import { useRef } from "react" import { useShallow } from "zustand/react/shallow" import { useListboxNavigation } from "@/shared/lib/useListBoxNavigation" +import { FloatingAddButton } from "@/shared/ui/floatingAddButton" import { useCreateGameStore } from "../store/useCreateGameStore" import { Question } from "./question" @@ -35,10 +33,10 @@ export function QuestionList() { ) return ( -
+
- - - - - +
) } diff --git a/service/app/src/app/game/[gameId]/layout.tsx b/service/app/src/app/game/[gameId]/layout.tsx index fe610461..fbe8de7f 100644 --- a/service/app/src/app/game/[gameId]/layout.tsx +++ b/service/app/src/app/game/[gameId]/layout.tsx @@ -34,7 +34,7 @@ export default async function GameLayout({ return ( -
+
{children}
diff --git a/service/app/src/app/game/[gameId]/setup/components/teamSidebar.tsx b/service/app/src/app/game/[gameId]/setup/components/teamSidebar.tsx index da316a17..3958819e 100644 --- a/service/app/src/app/game/[gameId]/setup/components/teamSidebar.tsx +++ b/service/app/src/app/game/[gameId]/setup/components/teamSidebar.tsx @@ -1,11 +1,11 @@ "use client" -import { PrimaryBoxButton } from "@ject-5-fe/design/components/button" import { PlayerStatus } from "@ject-5-fe/design/components/playerStatus" -import { StickyActionBar } from "@ject-5-fe/design/components/stickyActionBar" import { v4 as uuidv4 } from "uuid" import { useShallow } from "zustand/react/shallow" +import { FloatingAddButton } from "@/shared/ui/floatingAddButton" + import { useGameStore } from "../../store/useGameStore" import { generateTeamName } from "../../utils/generateTeamName" import { MAX_TEAMS } from "../../utils/teamValidation" @@ -29,30 +29,23 @@ export function TeamSidebar() { } return ( -