File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
frontend/src/components/host Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components' ;
2
2
3
3
interface OfflineViewProps {
4
- closeModal : ( ) => void ;
4
+ openModal : ( ) => void ;
5
5
}
6
6
7
- export default function OfflineView ( { closeModal } : OfflineViewProps ) {
7
+ export default function OfflineView ( { openModal } : OfflineViewProps ) {
8
8
return (
9
9
< LivePlayerInner >
10
10
< PlayerTitle > 라이브 스트리밍을 시작하려면 스트리밍 소프트웨어를 연결하세요.</ PlayerTitle >
11
11
< PlayerDescription > 방송 시작 및 종료는 스트리밍 소프트웨어에서 가능합니다.</ PlayerDescription >
12
12
< PlayerWrapper >
13
- < Button type = "button" onClick = { closeModal } >
13
+ < Button type = "button" onClick = { openModal } >
14
14
스트리밍 설정 안내
15
15
</ Button >
16
16
</ PlayerWrapper >
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ interface PlayerProps {
11
11
}
12
12
13
13
export default function Player ( { onStreaming } : PlayerProps ) {
14
- const { isOpen, closeModal } = useModal ( ) ;
14
+ const { isOpen, closeModal, openModal } = useModal ( ) ;
15
15
const createPortal = usePortal ( ) ;
16
16
17
17
return (
18
18
< >
19
19
< Container onStreaming = { onStreaming } >
20
- < StreamingView onStreaming = { onStreaming } closeModal = { closeModal } />
20
+ < StreamingView onStreaming = { onStreaming } openModal = { openModal } />
21
21
</ Container >
22
22
< StreamingStatus onStreaming = { onStreaming } />
23
23
{ isOpen && createPortal ( < SettingInfo closeModal = { closeModal } /> ) }
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ import OnlineView from './OnlineView';
3
3
4
4
interface StreamingViewProps {
5
5
onStreaming : boolean ;
6
- closeModal : ( ) => void ;
6
+ openModal : ( ) => void ;
7
7
}
8
8
9
- export default function StreamingView ( { onStreaming, closeModal } : StreamingViewProps ) {
9
+ export default function StreamingView ( { onStreaming, openModal } : StreamingViewProps ) {
10
10
if ( onStreaming ) {
11
11
return < OnlineView /> ;
12
12
}
13
13
14
- return < OfflineView closeModal = { closeModal } /> ;
14
+ return < OfflineView openModal = { openModal } /> ;
15
15
}
You can’t perform that action at this time.
0 commit comments