Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
students
Today KU
Commits
6119ea8f
Commit
6119ea8f
authored
Oct 11, 2021
by
Kim, Subin
Browse files
EditBtn module 완성 및 HomePage에 적용
parent
074c9d90
Changes
3
Hide whitespace changes
Inline
Side-by-side
client/src/components/EditBtn/EditBtn.js
0 → 100644
View file @
6119ea8f
import
{
Link
}
from
"
react-router-dom
"
;
import
styles
from
"
./editBtn.module.scss
"
;
const
EditBtn
=
({
pathname
})
=>
{
return
(
<
Link
className
=
{
`btn btn-crimson position-absolute
${
styles
.
editBtn
}
`
}
to
=
{
"
/
"
+
pathname
}
>
<
i
className
=
"
bi bi-plus-circle
"
><
/i
>
<
/Link
>
)
}
export
default
EditBtn
\ No newline at end of file
client/src/components/EditBtn/editBtn.module.scss
0 → 100644
View file @
6119ea8f
.editBtn
{
font-size
:
24px
;
bottom
:
10px
;
right
:
10px
;
border-radius
:
35px
;
}
\ No newline at end of file
client/src/pages/HomePage.js
View file @
6119ea8f
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
EditBtn
from
"
../components/EditBtn/EditBtn.js
"
;
const
HomePage
=
()
=>
{
const
HomePage
=
()
=>
{
return
(
return
(
<
Menu
/>
<>
<
Menu
/>
<
EditBtn
pathname
=
"
schedule/edit
"
/>
<
/
>
)
)
}
}
...
...
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