-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #331 from SejongPeer/feature/6
feat: [6] 버튼 컴포넌트화
- Loading branch information
Showing
6 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { Children } from 'react'; | ||
import style from './SubmitBtn.module.css' | ||
|
||
const SubmitBtn = (props) => { | ||
return ( | ||
<div> | ||
{Children} | ||
</div> | ||
) | ||
const SubmitBtn = ({ | ||
name, | ||
ready, | ||
onClickHandler | ||
}) => { | ||
return <button | ||
className={ready ? style.submitBtn : style.submitBtn_notReady} | ||
onClick={onClickHandler} | ||
> | ||
{name} | ||
</button> | ||
} | ||
|
||
export default SubmitBtn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.submitBtn { | ||
width: 343px; | ||
height: 52px; | ||
background-color: #ff4b4b; | ||
text-align: center; | ||
color: #ffffff; | ||
border: none; | ||
border-radius: 28px; | ||
font-size: 18px; | ||
font-weight: 700; | ||
} | ||
.submitBtn_notReady { | ||
width: 343px; | ||
height: 52px; | ||
background-color: #E5E5E5; | ||
text-align: center; | ||
color: #ffffff; | ||
border: none; | ||
border-radius: 28px; | ||
font-size: 18px; | ||
font-weight: 700; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import StudyPostWrite from "../studyPostWrite/StudyPostWrite"; | ||
|
||
const StudyModify = () => { | ||
return <StudyPostWrite /> | ||
} | ||
|
||
export default StudyModify; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters