@@ -13,17 +13,22 @@ import { formatTime } from '@/utils/DateTime';
13
13
14
14
interface Props {
15
15
cancel ( ) : void
16
+ name1 : string , // user's username
17
+ name2 : string , // matched user's username
16
18
}
17
19
18
- const JoinedMatchContent : React . FC < Props > = ( { cancel} ) => {
20
+ const JoinedMatchContent : React . FC < Props > = ( { cancel, name1 : me , name2 : you } ) => {
19
21
const matchAlreadyJoined = ( ) => {
20
22
throw new Error ( 'Match already joined.' ) ;
21
23
}
22
24
23
25
return (
24
26
< div className = "joined-match-content" >
25
27
< div className = "matched-profiles" >
26
- < Avatar size = { 64 } icon = { < UserOutlined /> } />
28
+ < div className = "avatar-caption-container" >
29
+ < Avatar size = { 64 } icon = { < UserOutlined /> } />
30
+ < div className = "user-caption" > { me } </ div >
31
+ </ div >
27
32
< svg xmlns = "http://www.w3.org/2000/svg"
28
33
height = "24px"
29
34
viewBox = "0 -960 960 960"
@@ -33,7 +38,10 @@ const JoinedMatchContent: React.FC<Props> = ({cancel}) => {
33
38
>
34
39
< path d = "m422-232 207-248H469l29-227-185 267h139l-30 208ZM320-80l40-280H160l360-520h80l-40 320h240L400-80h-80Zm151-390Z" />
35
40
</ svg >
36
- < Avatar size = { 64 } icon = { < UserOutlined /> } />
41
+ < div className = "avatar-caption-container" >
42
+ < Avatar size = { 64 } icon = { < UserOutlined /> } />
43
+ < div className = "user-caption" > { you } </ div >
44
+ </ div >
37
45
</ div >
38
46
< div className = "match-status-label" > Match Found!</ div >
39
47
< div className = "match-status-message" >
0 commit comments