Skip to content

Commit

Permalink
온도 옵션 disabled 조건 변경 (#64)
Browse files Browse the repository at this point in the history
* feat: 온도 옵션 disabled 조건 변경

* design: middleButton border 색 변경
  • Loading branch information
presentKey committed Oct 1, 2024
1 parent 708f450 commit 4336593
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/pages/Home/components/RecommendClothes.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ const ChipWrapper = styled.div`
const ToggleButon = styled(CustomToggleButton)`
height: 40px;
&.MuiToggleButtonGroup-middleButton {
border-right: 1px solid ${({ theme }) => theme.colors.primary.main};
border-left: 1px solid ${({ theme }) => theme.colors.primary.main};
}
&:first-of-type {
border-top-left-radius: 16px;
border-bottom-left-radius: 16px;
Expand Down
7 changes: 2 additions & 5 deletions src/pages/Home/components/RecommendClothes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,11 @@ const RecommendClothes = ({ weather }: RecommendClothesProps) => {
value={tempCondition}
onChange={handleTempConditionChange}
>
<C.ToggleButon
value={COOL}
disabled={weather.extremumTmp < 5 || weather.extremumTmp >= 28}
>
<C.ToggleButon value={COOL} disabled={weather.extremumTmp >= 28}>
시원하게
</C.ToggleButon>
<C.ToggleButon value={NORMAL}>적당하게</C.ToggleButon>
<C.ToggleButon value={WARM} disabled={weather.extremumTmp >= 28}>
<C.ToggleButon value={WARM} disabled={weather.extremumTmp < 5}>
따뜻하게
</C.ToggleButon>
</ToggleButtonGroup>
Expand Down

0 comments on commit 4336593

Please sign in to comment.