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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
love_飞影
Neos
Commits
72226334
Commit
72226334
authored
Oct 06, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
centered align
parent
98220543
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
src/JoinRoom.tsx
src/JoinRoom.tsx
+9
-3
src/css/WaitRoom.css
src/css/WaitRoom.css
+11
-0
No files found.
src/JoinRoom.tsx
View file @
72226334
import
React
,
{
useState
,
ChangeEvent
}
from
"
react
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
"
./css/WaitRoom.css
"
;
export
default
function
JoinRoom
()
{
const
[
player
,
setPlayer
]
=
useState
(
""
);
...
...
@@ -19,6 +20,7 @@ export default function JoinRoom() {
return
(
<
div
>
<
p
>
<
label
>
player:
</
label
>
<
input
type=
"text"
title=
"player"
...
...
@@ -27,6 +29,7 @@ export default function JoinRoom() {
></
input
>
</
p
>
<
p
>
<
label
>
addr:
</
label
>
<
input
type=
"text"
title=
"ip"
...
...
@@ -35,6 +38,7 @@ export default function JoinRoom() {
></
input
>
</
p
>
<
p
>
<
label
>
passwd:
</
label
>
<
input
type=
"text"
title=
"passwd"
...
...
@@ -42,9 +46,11 @@ export default function JoinRoom() {
onChange=
{
handlePasswdChange
}
></
input
>
</
p
>
<
button
>
<
Link
to=
{
{
pathname
:
`/${player}/${passWd}/${ip}`
}
}
>
join
</
Link
>
</
button
>
<
p
>
<
button
>
<
Link
to=
{
{
pathname
:
`/${player}/${passWd}/${ip}`
}
}
>
join
</
Link
>
</
button
>
</
p
>
</
div
>
);
}
src/css/WaitRoom.css
0 → 100644
View file @
72226334
body
{
margin
:
0
;
}
div
{
margin
:
auto
;
}
p
{
text-align
:
center
;
}
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