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
Today KU
Commits
864414b4
Commit
864414b4
authored
Oct 13, 2021
by
Kim, Subin
Browse files
BtnGroup disabled props 추가
parent
2fe326b4
Changes
1
Show whitespace changes
Inline
Side-by-side
client/src/components/Buttons/BtnGroup.js
View file @
864414b4
import
{
useHistory
}
from
"
react-router-dom
"
;
import
{
useHistory
}
from
"
react-router-dom
"
;
import
styles
from
"
./buttons.module.scss
"
;
import
styles
from
"
./buttons.module.scss
"
;
const
BtnGroup
=
()
=>
{
const
BtnGroup
=
(
{
disabled
}
)
=>
{
const
history
=
useHistory
();
const
history
=
useHistory
();
return
(
return
(
<
div
className
=
"
d-flex justify-content-around my-4
"
>
<
div
className
=
"
d-flex justify-content-around my-4
"
>
<
button
className
=
"
btn btn-white col-5 shadow-none border-dark
"
type
=
"
button
"
onClick
=
{()
=>
history
.
goBack
()}
>
취소
<
/button
>
<
button
className
=
"
btn btn-white col-5 shadow-none border-dark
"
type
=
"
button
"
onClick
=
{()
=>
history
.
goBack
()}
>
취소
<
/button
>
<
button
className
=
{
`btn btn-crimson col-5
${
styles
.
disabledBtn
}
`
}
type
=
"
submit
"
disabled
>
등록
<
/button
>
<
button
className
=
{
`btn btn-crimson col-5
${
styles
.
disabledBtn
}
`
}
type
=
"
submit
"
disabled
=
{
disabled
}
>
등록
<
/button
>
<
/div
>
<
/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