-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[FIX] 공통 모달 퍼블리싱 수정
- Loading branch information
Showing
27 changed files
with
261 additions
and
242 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,26 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
function CategoryBox() { | ||
return ( | ||
<CategoryBoxLayout> | ||
<TitleSection>카테고리</TitleSection> | ||
</CategoryBoxLayout> | ||
); | ||
} | ||
|
||
const CategoryBoxLayout = styled.div` | ||
width: 31.7rem; | ||
height: 49rem; | ||
border: 1px solid #e4e4e4; | ||
border-radius: 12px; | ||
`; | ||
|
||
const TitleSection = styled.section` | ||
width: 100%; | ||
height: 6.6rem; | ||
padding: 2rem 0.8rem 1.8rem 2.8rem; | ||
${({ theme }) => theme.fontTheme.HEADLINE_02} | ||
`; | ||
export default CategoryBox; |
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 was deleted.
Oops, something went wrong.
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
19 changes: 0 additions & 19 deletions
19
src/components/common/button/settingBtn/SettingCheck2Btn.tsx
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/components/common/button/settingBtn/SettingCheck3Btn.tsx
This file was deleted.
Oops, something went wrong.
52 changes: 0 additions & 52 deletions
52
src/components/common/button/settingBtn/SettingCheck4Btn.tsx
This file was deleted.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
src/components/common/button/settingBtn/SettingCheckBtn.tsx
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,46 @@ | ||
import styled from '@emotion/styled'; | ||
import { FunctionComponent, SVGProps } from 'react'; | ||
|
||
import Icons from '@/assets/svg/index'; | ||
import { SettingLayout, smallIcon, bigIcon } from '@/components/common/button/settingBtn/settingBtnStyle'; | ||
|
||
const settingIconMap: Record<string, FunctionComponent<SVGProps<SVGSVGElement>>> = { | ||
complete: Icons.SettingIcons.SettingCheck1, | ||
check: Icons.SettingIcons.SettingCheck2, | ||
done: Icons.SettingIcons.SettingCheck3, | ||
progress: Icons.SettingIcons.SettingCheck4, | ||
close: Icons.SettingX, | ||
}; | ||
interface SettingCheckBtnProps { | ||
size: 'small' | 'big'; | ||
type: 'complete' | 'check' | 'done' | 'progress' | 'close'; | ||
onClick?: () => void; | ||
isHover: boolean; | ||
isPressed: boolean; | ||
isActive: boolean; | ||
} | ||
|
||
function SettingCheckBtn({ size, type, onClick, isHover, isPressed, isActive }: SettingCheckBtnProps) { | ||
const IconComponent = settingIconMap[type]; | ||
|
||
const isFill = type === 'progress'; | ||
|
||
const StyledSettingCheckIcon = styled(IconComponent)<{ size: string }>` | ||
${({ size }) => (size === 'small' ? smallIcon : bigIcon)}; | ||
`; | ||
|
||
return ( | ||
<SettingLayout | ||
size={size} | ||
isFill={isFill} | ||
onClick={onClick} | ||
isHover={isHover} | ||
isPressed={isPressed} | ||
isActive={isActive} | ||
> | ||
<StyledSettingCheckIcon size={size} /> | ||
</SettingLayout> | ||
); | ||
} | ||
|
||
export default SettingCheckBtn; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.