Skip to content

Commit

Permalink
크루 생성 페이지 UI 수정 (#306)
Browse files Browse the repository at this point in the history
* fix: 활동하는 지역 선택 모달 타이틀 추가

* style: 활동지역 모달 가로 스크롤 hidden 처리
  • Loading branch information
imb96 authored Nov 24, 2023
1 parent 83cb8e8 commit 9fac16b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
9 changes: 2 additions & 7 deletions src/pages/CreateCrewPage/CreateCrewPage.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ export const StyledModalHeader = styled.div`
margin-bottom: 32px;
`;

export const ScrollBox = styled.div`
height: 300px;
width: 300px;
overflow: scroll;
border-radius: 30px;
`;

export const StyledSelectedLocationButton = styled(Button)<{
isSelected?: boolean;
}>`
Expand All @@ -59,6 +52,7 @@ export const StyledSelectBox = styled(SelectBox)`
border-radius: 8%;
border: 1px solid ${({ theme }) => theme.PALETTE.GRAY_900};
overflow: scroll;
overflow-x: hidden;
`;

export const StyledToggleButton = styled(ToggleButton)<{
Expand All @@ -73,4 +67,5 @@ export const StyledToggleButton = styled(ToggleButton)<{

export const StyledModalContent = styled(Modal.Content)`
${({ theme }) => theme.STYLES.FLEX_CENTER}
padding: 30px;
`;
27 changes: 12 additions & 15 deletions src/pages/CreateCrewPage/CreateCrewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { theme } from '@styles/theme';
import {
PageLayout,
PageWrapper,
ScrollBox,
StyledCreateForm,
StyledEmptyContainer,
StyledModalContent,
Expand Down Expand Up @@ -114,23 +113,21 @@ export const CreateCrewPage = () => {
>
<StyledModalHeader>
<Text size={20} weight={700}>
{}
{CREATE_CREW_STRINGS.CREW_LOCATION}
</Text>
</StyledModalHeader>
<StyledModalContent>
<ScrollBox>
<StyledSelectBox border="none">
{locations.addressDepth2List.map((location) => (
<StyledToggleButton
key={location}
value={location}
isActive={selectedLocations.includes(location)}
border="none"
onToggle={handleToggleLocation}
/>
))}
</StyledSelectBox>
</ScrollBox>
<StyledSelectBox border="none">
{locations.addressDepth2List.map((location) => (
<StyledToggleButton
key={location}
value={location}
isActive={selectedLocations.includes(location)}
border="none"
onToggle={handleToggleLocation}
/>
))}
</StyledSelectBox>
</StyledModalContent>
</Modal>
<TextArea
Expand Down

0 comments on commit 9fac16b

Please sign in to comment.