diff --git a/src/pages/MainPage/GameRoomList.tsx b/src/pages/MainPage/GameRoomList.tsx index 100baf64..9e8d76d2 100644 --- a/src/pages/MainPage/GameRoomList.tsx +++ b/src/pages/MainPage/GameRoomList.tsx @@ -20,52 +20,50 @@ const GameRoomList = ({ data, checkedGameModeList }: GameRoomListProps) => { ); return ( -
-
+ + {!filteredRoomList.length && ( + + 방 목록이 존재하지 않아요 😫 + + )} + + ); }; diff --git a/src/pages/MainPage/MainPage.tsx b/src/pages/MainPage/MainPage.tsx index ed92e5f2..7398f490 100644 --- a/src/pages/MainPage/MainPage.tsx +++ b/src/pages/MainPage/MainPage.tsx @@ -21,20 +21,6 @@ export type TestType = { [key in FilteredGameModeType]: boolean; }; -export const gameModeList: FilteredGameModeType[] = [ - 'ALL', - 'SENTENCE', - 'CODE', - 'WORD', -]; - -export const mappedGameModeList = { - ALL: '전체', - SENTENCE: '문장', - CODE: '코드', - WORD: '단어', -}; - export type EntriesType = { [K in keyof T]: [K, T[K]]; }[keyof T][]; @@ -77,44 +63,53 @@ const MainPage = () => { return (
- +
+ +
navigate('/rank')}>
- +
+ +
-
+
+
+ +
- 방 만들기 +
}> {(data) => ( - +
+ +
)}
diff --git a/src/pages/MainPage/UserCard.tsx b/src/pages/MainPage/UserCard.tsx index 878772ef..f369b8e4 100644 --- a/src/pages/MainPage/UserCard.tsx +++ b/src/pages/MainPage/UserCard.tsx @@ -26,7 +26,7 @@ const UserCard = ({ averageAccuracy = 0, }: UserCardProps) => { return ( -
+ <> {isGuest && (
@@ -68,7 +68,7 @@ const UserCard = ({ {`완벽함 ${formatNumber(averageAccuracy)}%`}
-
+ ); }; diff --git a/src/pages/MainPage/UserList.tsx b/src/pages/MainPage/UserList.tsx index 1a26229c..1095b479 100644 --- a/src/pages/MainPage/UserList.tsx +++ b/src/pages/MainPage/UserList.tsx @@ -8,7 +8,7 @@ interface UserListProps { const UserList = ({ userList, myId }: UserListProps) => { return ( -
+ <>

현재 접속자

    {userList ? ( @@ -23,7 +23,7 @@ const UserList = ({ userList, myId }: UserListProps) => { 접속중인 유저가 없습니다. )}
-
+ ); };