Commit 247c9892 authored by Kim, Subin's avatar Kim, Subin
Browse files

button disabled css 추가

parent e1b8a170
import { useHistory } from "react-router-dom"; import { useHistory } from "react-router-dom";
import styles from "./buttons.module.scss";
const BtnGroup = () => { const BtnGroup = () => {
const history = useHistory(); const history = useHistory();
...@@ -6,7 +7,7 @@ const BtnGroup = () => { ...@@ -6,7 +7,7 @@ const BtnGroup = () => {
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" type="submit">등록</button> <button className={`btn btn-crimson col-5 ${styles.disabledBtn}`} type="submit" disabled>등록</button>
</div> </div>
) )
} }
......
...@@ -36,4 +36,9 @@ ...@@ -36,4 +36,9 @@
color: crimson; color: crimson;
} }
} }
}
.disabledBtn:disabled {
background-color: #6c757d;
border-color: #6c757d;
} }
\ No newline at end of file
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