Skip to content

Commit de163b7

Browse files
authored
Merge pull request #17 from danggin/feature/chatting
Feature/chatting
2 parents 71f1c36 + 435e395 commit de163b7

5 files changed

Lines changed: 22 additions & 13 deletions

File tree

src/components/ui/card/chatting/ChattingStyle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ export const chatInputBoxContainer = styled.div`
1919
display: flex;
2020
flex-direction: column;
2121
gap: 10px;
22+
height: 100%;
2223
`;

src/components/ui/chatInput/chatInputStyle.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import styled from "styled-components";
33
export const chatLog = styled.div`
44
flex-grow: 1;
55
font-size: 14px;
6-
max-height: 290px;
76
overflow-y: scroll;
7+
height: 100%;
88
`;
99

1010
export const chatInput = styled.input`
@@ -31,5 +31,4 @@ export const chatInputBox = styled.div`
3131
width: 100%;
3232
display: flex;
3333
gap: 10px;
34-
height: 100%;
3534
`;

src/components/ui/modal/modalComponent.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@ import TurnWaiting from "../modalContents/TurnWaiting";
55
import GameWaiting from "../modalContents/GameWaiting";
66
import Alert from "../modalContents/Alert";
77
import GuessNumber from "../selectionNumber/GuessNumber";
8+
import SelectTurn from "../modalContents/SelectTurn";
89

910
export const modalComponents: Record<string, React.ReactNode> = {
1011
firstSelect: <FirstSelect />,
1112
makeRoom: <MakeRoom />,
1213
selectWhiteBlack: <BigDeck />,
1314
turnWaiting: <TurnWaiting />,
1415
gameWaiting: <GameWaiting />,
15-
guessNumber: <GuessNumber />,
16-
myTurn: <BigDeck />,
17-
18-
GameRoomJoinConfirm: (
16+
selectTurn: <SelectTurn />,
17+
gameRoomJoinConfirm: (
1918
<Alert message="개임 방 만들기는 로그인 후 가능합니다." />
2019
),
20+
guessNumber: <GuessNumber />,
21+
myTurn: <BigDeck />,
2122
};

src/pages/game/gameRoomList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function GameRoomList() {
2222

2323
const onClickModalOpen = () => {
2424
if (!accessToken || accessToken === null) {
25-
openModal("GameRoomJoinConfirm", "white");
25+
openModal("gameRoomJoinConfirm", "white");
2626
} else {
2727
openModal("makeRoom", "white");
2828
}

src/routes/router.tsx

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import Home from "@pages/home/Home";
1212
import SignUpFinish from "@pages/user/signUp/SignUpFinish";
1313
import Error from "@pages/error/Error";
1414
import TestPage from "../pages/testpage/Testpage";
15+
import MyPage from "../pages/mypage/myScorePage/MyPage";
1516

1617
export const router = createBrowserRouter([
1718
{
@@ -58,13 +59,20 @@ export const router = createBrowserRouter([
5859
],
5960
},
6061
{
61-
path: "/user/mypage/checkPassword",
62-
element: <CheckPassword />,
63-
},
64-
{
65-
path: "/user/mypage/updateMyPage",
66-
element: <UpdateMyPage />,
62+
path: "/user/mypage",
63+
element: <MyPage />,
64+
children: [
65+
{
66+
path: "checkPassword",
67+
element: <CheckPassword />,
68+
},
69+
{
70+
path: "updateMyPage",
71+
element: <UpdateMyPage />,
72+
},
73+
],
6774
},
75+
6876
{
6977
path: "/test",
7078
element: <TestPage />,

0 commit comments

Comments
 (0)