Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos
Commits
67c6710f
Commit
67c6710f
authored
Sep 18, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code fmt
parent
d2df30c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
src/JoinRoom.tsx
src/JoinRoom.tsx
+5
-5
src/WaitRoom.tsx
src/WaitRoom.tsx
+11
-9
No files found.
src/JoinRoom.tsx
View file @
67c6710f
import
React
,
{
useState
,
ChangeEvent
}
from
"
react
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
React
,
{
useState
,
ChangeEvent
}
from
"
react
"
;
import
{
Link
}
from
"
react-router-dom
"
;
export
default
function
JoinRoom
()
{
const
[
player
,
setPlayer
]
=
useState
(
""
);
const
[
passWd
,
setPasswd
]
=
useState
(
""
);
const
[
ip
,
setIp
]
=
useState
(
""
)
const
[
ip
,
setIp
]
=
useState
(
""
)
;
let
handlePlayerChange
=
(
event
:
ChangeEvent
<
HTMLInputElement
>
)
=>
{
setPlayer
(
event
.
target
.
value
);
...
...
@@ -13,8 +13,8 @@ export default function JoinRoom() {
setPasswd
(
event
.
target
.
value
);
};
let
handleIpChange
=
(
event
:
ChangeEvent
<
HTMLInputElement
>
)
=>
{
setIp
(
event
.
target
.
value
)
}
setIp
(
event
.
target
.
value
)
;
}
;
return
(
<
div
>
...
...
src/WaitRoom.tsx
View file @
67c6710f
import
React
from
"
react
"
;
import
{
useParams
}
from
"
react-router-dom
"
;
import
{
useParams
}
from
"
react-router-dom
"
;
export
default
function
WaitRoom
()
{
const
params
=
useParams
<
{
player
:
string
,
passWd
:
string
,
ip
:
string
player
:
string
;
passWd
:
string
;
ip
:
string
;
}
>
();
return
(<
div
>
<
p
>
player:
{
params
.
player
}
</
p
>
<
p
>
passwd:
{
params
.
passWd
}
</
p
>
<
p
>
ip:
{
params
.
ip
}
</
p
>
</
div
>);
return
(
<
div
>
<
p
>
player:
{
params
.
player
}
</
p
>
<
p
>
passwd:
{
params
.
passWd
}
</
p
>
<
p
>
ip:
{
params
.
ip
}
</
p
>
</
div
>
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment