Commit 6119ea8f authored by Kim, Subin's avatar Kim, Subin
Browse files

EditBtn module 완성 및 HomePage에 적용

parent 074c9d90
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
.editBtn {
font-size: 24px;
bottom: 10px;
right: 10px;
border-radius: 35px;
}
\ No newline at end of file
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" />
</>
) )
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment