@@ -7,16 +7,16 @@ interface BtnProps {
77 nickname ?: string ;
88 chatRoomId ?: number ;
99 appointmentId : number ;
10- isComplete ?: boolean ;
10+ isReviewed ?: boolean ;
1111}
1212
13- const Btn = ( { type, isComplete , chatRoomId, appointmentId, nickname } : BtnProps ) => {
14- const title = type === 'chat' ? 'μ±ν
μ°½' : isComplete ? 'μμ±μλ£' : '리뷰μμ±' ;
15- const iconColor = type === 'chat' ? '54' : isComplete ? 'systemGray2' : '100' ;
16- const icon = type === 'chat' ? 'mgc_chat_1_fill' : isComplete ? 'mgc_choice_fill' : 'mgc_message_4_fill' ;
13+ const Btn = ( { type, isReviewed , chatRoomId, appointmentId, nickname } : BtnProps ) => {
14+ const title = type === 'chat' ? 'μ±ν
μ°½' : isReviewed ? 'μμ±μλ£' : '리뷰μμ±' ;
15+ const iconColor = type === 'chat' ? '54' : isReviewed ? 'systemGray2' : '100' ;
16+ const icon = type === 'chat' ? 'mgc_chat_1_fill' : isReviewed ? 'mgc_choice_fill' : 'mgc_message_4_fill' ;
1717
18- const bg = type === 'chat' ? 'systemGray2' : isComplete ? 'systemGray5' : 'main' ;
19- const color = type === 'review' && isComplete ? '54' : '100' ;
18+ const bg = type === 'chat' ? 'systemGray2' : isReviewed ? 'systemGray5' : 'main' ;
19+ const color = type === 'review' && isReviewed ? '54' : '100' ;
2020
2121 const navigate = useNavigate ( ) ;
2222
@@ -25,14 +25,13 @@ const Btn = ({ type, isComplete, chatRoomId, appointmentId, nickname }: BtnProps
2525 e . preventDefault ( ) ;
2626
2727 if ( type === 'chat' ) {
28- alert ( 'μ±ν
μ°½μΌλ‘ μ°κ²°' ) ;
2928 navigate ( `/chatroom/${ chatRoomId } ` ) ;
3029
3130 return ;
3231 }
3332 if ( type === 'review' ) {
3433 // 리뷰 μμ± μ μΌ λ,
35- if ( ! isComplete ) {
34+ if ( ! isReviewed ) {
3635 alert ( '리뷰 μμ± νμ΄μ§λ‘ μ°κ²°' ) ;
3736 navigate ( `/review/${ appointmentId } ` , {
3837 state : {
0 commit comments