Skip to content

Commit

Permalink
feat: 멤버 탭에서 모바일 정렬 Select를 BottomSheetSelect로 교체
Browse files Browse the repository at this point in the history
  • Loading branch information
simeunseo committed Dec 19, 2024
1 parent 59c9b00 commit f904e75
Showing 1 changed file with 6 additions and 43 deletions.
49 changes: 6 additions & 43 deletions src/components/members/main/MemberList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,19 +260,12 @@ const MemberList: FC<MemberListProps> = ({ banner }) => {
`}
>
<Text typography='SUIT_14_M'>{`전체 ${memberProfileData.pages[0].totalMembersCount}명`}</Text>
<StyledMobileFilter
placeholder=''
<StyledBottomSheetSelect
options={ORDER_OPTIONS}
value={orderBy.value}
placeholder=''
onChange={handleSelectOrderBy}
trigger={(placeholder) => (
<OrderFilter>
<Text typography='SUIT_16_M' color={colors.gray300}>
{placeholder}
</Text>
<StyledSwitchVertical />
</OrderFilter>
)}
icon={<StyledSwitchVertical />}
/>
</div>
)}
Expand Down Expand Up @@ -613,44 +606,14 @@ const StyledMobileFilterWrapper = styled.div`
display: none; /* Chrome, Safari, Opera */
}
`;
const StyledMobileFilter = styled(MemberListFilterSheet)`
flex: none;
`;

const MobileFilterTrigger = styled.button<{ selected?: boolean }>`
display: flex;
gap: 12px;
align-items: center;
justify-content: center;
border: 1px solid transparent;
border-radius: 10px;
background: ${colors.gray800};
padding: 11px 16px;
width: max-content;
min-width: fit-content;
height: 48px;
color: ${colors.gray300};
${({ selected }) =>
selected &&
css`
color: ${colors.white};
`}
`;

const StyledChevronDown = styled(IconChevronDown)`
width: 20px;
height: 20px;
color: ${colors.white};
`;

const StyledSwitchVertical = styled(IconSwitchVertical)`
width: 20px;
height: 20px;
color: ${colors.gray300};
`;

const OrderFilter = styled.div`
display: flex;
gap: 12px;
align-items: center;
const StyledBottomSheetSelect = styled(BottomSheetSelect)`
background-color: transparent;
color: ${colors.gray300};
`;

0 comments on commit f904e75

Please sign in to comment.