Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
shopping-mall
Commits
9c17ddca
Commit
9c17ddca
authored
Jan 04, 2021
by
박상호
🎼
Browse files
0104
parent
b968abb5
Changes
4
Show whitespace changes
Inline
Side-by-side
client/src/Components/MainNav.js
View file @
9c17ddca
...
@@ -7,6 +7,7 @@ import option from '../option.svg';
...
@@ -7,6 +7,7 @@ import option from '../option.svg';
function
MainNav
()
{
function
MainNav
()
{
function
handleClick
()
{
function
handleClick
()
{
alert
(
'
로그아웃이 완료되었습니다.
'
)
alert
(
'
로그아웃이 완료되었습니다.
'
)
window
.
location
.
href
=
"
/
"
}
}
return
(
return
(
...
...
client/src/Pages/Login.js
View file @
9c17ddca
...
@@ -4,14 +4,14 @@ import Nav1 from '../Components/MainNav';
...
@@ -4,14 +4,14 @@ import Nav1 from '../Components/MainNav';
import
Nav2
from
'
../Components/SubNav
'
;
import
Nav2
from
'
../Components/SubNav
'
;
import
{
Form
,
Col
,
Container
,
Button
,
Row
}
from
'
react-bootstrap
'
;
import
{
Form
,
Col
,
Container
,
Button
,
Row
}
from
'
react-bootstrap
'
;
function
Login
(){
function
Login
()
{
const
[
validated
,
setValidated
]
=
useState
(
false
);
const
[
validated
,
setValidated
]
=
useState
(
false
);
const
handleSubmit
=
(
e
)
=>
{
const
handleSubmit
=
(
e
)
=>
{
const
form
=
e
.
currentTarget
;
const
form
=
e
.
currentTarget
;
console
.
log
(
form
)
console
.
log
(
form
)
if
(
form
.
checkValidity
()
===
false
){
if
(
form
.
checkValidity
()
===
false
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
}
}
...
...
client/src/Pages/LogoutButton.js
deleted
100644 → 0
View file @
b968abb5
import
React
from
'
react
'
import
{
withRouter
}
from
'
react-router-dom
'
function
LogoutButton
({
logout
,
history
}){
const
handleClick
=
()
=>
{
logout
()
history
.
push
(
"
/
"
)
}
return
<
button
onClick
=
{
handleClick
}
>
Logout
<
/button
>
}
export
default
withRouter
(
LogoutButton
)
\ No newline at end of file
package-lock.json
0 → 100644
View file @
9c17ddca
{
"requires"
:
true
,
"lockfileVersion"
:
1
,
"dependencies"
:
{
"js-tokens"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz"
,
"integrity"
:
"sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
},
"loose-envify"
:
{
"version"
:
"1.4.0"
,
"resolved"
:
"https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz"
,
"integrity"
:
"sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q=="
,
"requires"
:
{
"js-tokens"
:
"^3.0.0 || ^4.0.0"
}
},
"object-assign"
:
{
"version"
:
"4.1.1"
,
"resolved"
:
"https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz"
,
"integrity"
:
"sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
},
"prop-types"
:
{
"version"
:
"15.7.2"
,
"resolved"
:
"https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz"
,
"integrity"
:
"sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ=="
,
"requires"
:
{
"loose-envify"
:
"^1.4.0"
,
"object-assign"
:
"^4.1.1"
,
"react-is"
:
"^16.8.1"
}
},
"react"
:
{
"version"
:
"16.14.0"
,
"resolved"
:
"https://registry.npmjs.org/react/-/react-16.14.0.tgz"
,
"integrity"
:
"sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g=="
,
"requires"
:
{
"loose-envify"
:
"^1.1.0"
,
"object-assign"
:
"^4.1.1"
,
"prop-types"
:
"^15.6.2"
}
},
"react-daum-postcode"
:
{
"version"
:
"2.0.2"
,
"resolved"
:
"https://registry.npmjs.org/react-daum-postcode/-/react-daum-postcode-2.0.2.tgz"
,
"integrity"
:
"sha512-K1ScGNJeIk8lUqGf3mSn3flD1zJ+PmH1G54FplHxywlyKp8uG/+xrP1VEgDHKYBFJtpuiHvIUaJDFAh8m8zX9g=="
,
"requires"
:
{
"prop-types"
:
"^15.6.2"
,
"react"
:
"^16.4.2"
}
},
"react-is"
:
{
"version"
:
"16.13.1"
,
"resolved"
:
"https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz"
,
"integrity"
:
"sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
}
}
}
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