Showing
2 changed files
with
4 additions
and
4 deletions
... | @@ -5,11 +5,11 @@ import { MessageResponse, MessageType } from '../common/types'; | ... | @@ -5,11 +5,11 @@ import { MessageResponse, MessageType } from '../common/types'; |
5 | import { RoomData } from '../room/types'; | 5 | import { RoomData } from '../room/types'; |
6 | import { Room } from './types'; | 6 | import { Room } from './types'; |
7 | 7 | ||
8 | -interface RoomProps { | 8 | +interface RoomBlockProps { |
9 | room: Room | 9 | room: Room |
10 | } | 10 | } |
11 | 11 | ||
12 | -export const RoomInfo: React.FC<RoomProps> = ({ room }) => { | 12 | +export const RoomBlock: React.FC<RoomBlockProps> = ({ room }) => { |
13 | const history = useHistory(); | 13 | const history = useHistory(); |
14 | const socket = useContext(SocketContext); | 14 | const socket = useContext(SocketContext); |
15 | const joinRoom = () => { | 15 | const joinRoom = () => { | ... | ... |
1 | import React, { useContext, useEffect, useState } from 'react'; | 1 | import React, { useContext, useEffect, useState } from 'react'; |
2 | import { Main } from '../components/common/Main'; | 2 | import { Main } from '../components/common/Main'; |
3 | import { MessageResponse, MessageType } from '../components/common/types'; | 3 | import { MessageResponse, MessageType } from '../components/common/types'; |
4 | -import { RoomInfo } from '../components/rooms/RoomInfo'; | 4 | +import { RoomBlock } from '../components/rooms/RoomBlock'; |
5 | import { Room } from '../components/rooms/types'; | 5 | import { Room } from '../components/rooms/types'; |
6 | import SocketContext from '../contexts/SocketContext'; | 6 | import SocketContext from '../contexts/SocketContext'; |
7 | 7 | ||
... | @@ -43,7 +43,7 @@ export const Rooms: React.FC = () => { | ... | @@ -43,7 +43,7 @@ export const Rooms: React.FC = () => { |
43 | return ( | 43 | return ( |
44 | <Main> | 44 | <Main> |
45 | <div className='mt-auto w-screen flex flex-col items-center'> | 45 | <div className='mt-auto w-screen flex flex-col items-center'> |
46 | - {rooms.map((room) => (<RoomInfo key={room.uuid} room={room} />))} | 46 | + {rooms.map((room) => (<RoomBlock key={room.uuid} room={room} />))} |
47 | </div> | 47 | </div> |
48 | </Main> | 48 | </Main> |
49 | ) | 49 | ) | ... | ... |
-
Please register or login to post a comment