добавлено окно с попапом для подключения
This commit is contained in:
@@ -109,7 +109,7 @@ export const MainPart: React.FC<TProps> = React.memo((props) => {
|
||||
<ContentContainer
|
||||
titleText={LangDict.demoStartedTitle}
|
||||
descriptText={LangDict.demoStartedDescription}
|
||||
onClickButton={() => onClickConnect()}
|
||||
onClickButton={(accessCode) => onClickConnect(accessCode)}
|
||||
textButton={LangDict.connectToDemoButton}
|
||||
isAccessCode={true}
|
||||
/>
|
||||
@@ -132,8 +132,9 @@ export const MainPart: React.FC<TProps> = React.memo((props) => {
|
||||
setCurrentContent(<></>);
|
||||
}
|
||||
|
||||
function onClickConnect() {
|
||||
props.connectSess()
|
||||
function onClickConnect(accessCode: string) {
|
||||
console.log(accessCode)
|
||||
// props.connectSess()
|
||||
// ws.send('{ "message" : "NEW_SESS" }');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user