Toggle navigation
Toggle navigation
This project
Loading...
Sign in
한우준
/
Straight-Up
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
MrMirror21
2020-12-10 10:32:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e88fdc5c99a15d9868c503600f1aac9a3bec7451
e88fdc5c
1 parent
13b49b2f
add 'left' or 'right' to user choice of photos
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
straight-up/src/Main.js
straight-up/src/Main.js
View file @
e88fdc5
...
...
@@ -77,9 +77,11 @@ export default function Main() {
<
input
type
=
"file"
name
=
"file"
onChange
=
{
handleChangeFile
}
/>
<
div
className
=
"position-selector"
>
<
h3
>
전면
사진
<
/h3>
<
Checkbox
checked
=
{
selectedPosition
===
"front"
}
onChange
=
{(
isChecked
)
=>
{
isChecked
?
setPosition
(
'front'
)
:
setPosition
(
'side'
)}}
/>
<
h3
>
측면
사진
<
/h3>
<
Checkbox
checked
=
{
selectedPosition
===
"side"
}
onChange
=
{(
isChecked
)
=>
{
isChecked
?
setPosition
(
'side'
)
:
setPosition
(
'front'
)}}
/>
<
Checkbox
checked
=
{
selectedPosition
===
"front"
}
onChange
=
{(
isChecked
)
=>
{
isChecked
?
setPosition
(
'front'
)
:
setPosition
(
undefined
)}}
/>
<
h3
>
측면
사진
-
왼쪽
<
/h3>
<
Checkbox
checked
=
{
selectedPosition
===
"left"
}
onChange
=
{(
isChecked
)
=>
{
isChecked
?
setPosition
(
'left'
)
:
setPosition
(
undefined
)}}
/>
<
h3
>
측면
사진
-
오른쪽
<
/h3>
<
Checkbox
checked
=
{
selectedPosition
===
"right"
}
onChange
=
{(
isChecked
)
=>
{
isChecked
?
setPosition
(
'right'
)
:
setPosition
(
undefined
)}}
/>
<
/div>
<
button
type
=
"button"
onClick
=
{
analysisImage
}
>
Submit
<
/button>
<
/div>
...
...
Please
register
or
login
to post a comment