1
1
import Styled from './ShowPreview.styles' ;
2
- import { CallIcon , MessageIcon } from '@boolti/icon' ;
2
+ import { CallIcon , MessageIcon , TicketIcon } from '@boolti/icon' ;
3
3
4
4
import ShowInfoDescription from '../ShowContentMarkdown' ;
5
5
6
6
interface Props {
7
7
show : {
8
- images : string [ ] ;
9
- name : string ;
10
- date : string ;
11
- startTime : string ;
12
- runningTime : string ;
13
8
salesStartTime : string ;
14
9
salesEndTime : string ;
15
- placeName : string ;
16
- placeStreetAddress : string ;
17
- placeDetailAddress : string ;
18
10
notice : string ;
19
11
hostName : string ;
20
- hostPhoneNumber : string ;
12
+ isEnded : boolean ;
21
13
} ;
14
+ soldTicketCount ?: number ;
22
15
hasNoticePage ?: boolean ;
23
- onClickLink ?: ( ) => void ;
24
- onClickLinkMobile ?: ( ) => void ;
16
+ onClickCallLink ?: ( ) => void ;
17
+ onClickMessageLink ?: ( ) => void ;
18
+ onClickCallLinkMobile ?: ( ) => void ;
19
+ onClickMessageLinkMobile ?: ( ) => void ;
25
20
onClickViewNotice ?: ( ) => void ;
26
21
}
27
22
28
23
const ShowInfoDetail = ( {
29
24
show : {
30
- // date,
31
- // startTime,
32
- // runningTime,
33
25
salesStartTime,
34
26
salesEndTime,
35
- // placeName,
36
- // placeStreetAddress,
37
- // placeDetailAddress,
38
27
notice,
39
28
hostName,
29
+ isEnded,
40
30
} ,
31
+ soldTicketCount,
41
32
hasNoticePage,
42
- onClickLink,
43
- onClickLinkMobile,
33
+ onClickCallLink,
34
+ onClickMessageLink,
35
+ onClickCallLinkMobile,
36
+ onClickMessageLinkMobile,
44
37
onClickViewNotice,
45
38
} : Props ) => {
46
39
return (
@@ -52,6 +45,13 @@ const ShowInfoDetail = ({
52
45
< Styled . ShowInfoDescription >
53
46
{ salesStartTime } - { salesEndTime }
54
47
</ Styled . ShowInfoDescription >
48
+ { isEnded && soldTicketCount !== undefined && (
49
+ < Styled . ShowTicketInfoDescription >
50
+ < Styled . TicketIcon >
51
+ < TicketIcon />
52
+ </ Styled . TicketIcon > { soldTicketCount } 매 판매 완료
53
+ </ Styled . ShowTicketInfoDescription >
54
+ ) }
55
55
</ Styled . ShowInfoGroup >
56
56
< Styled . ShowInfoGroup >
57
57
< Styled . ShowInfoTitleContainer >
@@ -73,18 +73,18 @@ const ShowInfoDetail = ({
73
73
< Styled . ShowHost >
74
74
< Styled . ShowHostName > { hostName } </ Styled . ShowHostName >
75
75
< Styled . ShowHostLink >
76
- < a onClick = { onClickLink } >
76
+ < a onClick = { onClickCallLink } >
77
77
< CallIcon />
78
78
</ a >
79
- < a onClick = { onClickLink } >
79
+ < a onClick = { onClickMessageLink } >
80
80
< MessageIcon />
81
81
</ a >
82
82
</ Styled . ShowHostLink >
83
83
< Styled . ShowHostLinkMobile >
84
- < a onClick = { onClickLinkMobile } >
84
+ < a onClick = { onClickCallLinkMobile } >
85
85
< CallIcon />
86
86
</ a >
87
- < a onClick = { onClickLinkMobile } >
87
+ < a onClick = { onClickMessageLinkMobile } >
88
88
< MessageIcon />
89
89
</ a >
90
90
</ Styled . ShowHostLinkMobile >
0 commit comments