Skip to content

Commit

Permalink
🛠ī¸ Basic, Active Button font ė„¤ė • (#33)
Browse files Browse the repository at this point in the history
* feat: ActiveButtonė˜ styleClass propė— font ėļ”ę°€

* feat: BasicButtonė˜ styleClass propė— font ėļ”ę°€

* fix: button styleClass ėˆ˜ė • 반ė˜
  • Loading branch information
Legitgoons authored May 6, 2024
1 parent 9eb43a3 commit f423fce
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
5 changes: 4 additions & 1 deletion src/shared/ui/button/ActiveButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { ButtonProps } from './types';
import './ActiveButton.scss';

export type ActiveStyle = 'confirm' | 'follow-sm' | 'follow-lg';
export type ActiveStyle =
| 'confirm h4semi'
| 'follow-sm b2semi'
| 'follow-lg b1semi';

interface ActiveButtonProps extends ButtonProps {
styleClass: ActiveStyle;
Expand Down
6 changes: 3 additions & 3 deletions src/shared/ui/button/BasicButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import './BasicButton.scss';

export type BasicStyle =
| 'defalut'
| 'confirm-cancle'
| 'bsm-cancle'
| 'bsm-option';
| 'confirm-cancle h4semi'
| 'bsm-cancle h4semi'
| 'bsm-option h4md';

interface BasicButtonProps extends ButtonProps {
styleClass: BasicStyle;
Expand Down
7 changes: 5 additions & 2 deletions src/shared/ui/modal/BottomSheetModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@ export const BottomSheetModal = ({
<div className='modal-content'>
{options.map((option, index) => (
<Fragment key={index}>
<BasicButton onClick={option.onClick} styleClass='bsm-option'>
<BasicButton
onClick={option.onClick}
styleClass='bsm-option h4md'
>
{option.label}
</BasicButton>
{index < options.length - 1 && <hr className='option-divider' />}
</Fragment>
))}
</div>
<BasicButton styleClass='bsm-cancle' onClick={onClose}>
<BasicButton styleClass='bsm-cancle h4semi' onClick={onClose}>
ėˇ¨ė†Œ
</BasicButton>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/shared/ui/modal/ConfirmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export const ConfirmModal = ({
<h3 className='title h3semi'>{title}</h3>
<p className='content b1md'>{content}</p>
<div className='buttons'>
<BasicButton onClick={onClose} styleClass='confirm-cancle'>
<BasicButton onClick={onClose} styleClass='confirm-cancle h4semi'>
{onCloseMsg}
</BasicButton>
<ActiveButton
onClick={onExecute}
isDisabled={onExecuteIsDisabled}
styleClass='confirm'
styleClass='confirm h4semi'
>
{onExecuteMsg}
</ActiveButton>
Expand Down
4 changes: 2 additions & 2 deletions src/shared/ui/modal/ConfirmReportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ export const ConfirmReportModal = ({
<h3 className='title h3semi'>{title}</h3>
<section></section>
<div className='buttons'>
<BasicButton onClick={onClose} styleClass='confirm-cancle'>
<BasicButton onClick={onClose} styleClass='confirm-cancle h4semi'>
{onCloseMsg}
</BasicButton>
<ActiveButton
onClick={onExecute}
isDisabled={onExecuteIsDisabled}
styleClass='confirm'
styleClass='confirm h4semi'
>
{onExecuteMsg}
</ActiveButton>
Expand Down

0 comments on commit f423fce

Please sign in to comment.