= ({ banner }) => {
)}
+ {isEmpty && }
+
+ {profiles?.map((profiles, index) => (
+
+ {profiles.map((profile) => {
+ const sorted = profile.activities.sort((a, b) => b.generation - a.generation);
+ const badges = sorted.map((activity) => ({
+ content: `${activity.generation}기 ${activity.part}`,
+ isActive: activity.generation === LATEST_GENERATION,
+ }));
+
+ const belongs = profile.careers.find((career) => career.isCurrent)?.companyName ?? profile.university;
+
+ return (
+ handleClickCard(profile)}
+ >
+ {
+ e.preventDefault();
+ logClickEvent('messageBadge');
+ setMessageModalState({
+ show: true,
+ data: {
+ targetId: `${profile.id}`,
+ name: profile.name,
+ profileUrl: profile.profileImage,
+ },
+ });
+ }}
+ />
+
+
+
+
+ );
+ })}
+
+ ))}
+
@@ -525,7 +524,7 @@ const StyledMain = styled.main`
const StyledRightWrapper = styled.div`
display: flex;
flex: 1;
- flex-direction: column-reverse;
+ flex-direction: column;
width: 100%;
`;
From 7f18120c10156bfd8d277ee68d2ade2b0a54f4bb Mon Sep 17 00:00:00 2001
From: Eunseo Sim <55528304+simeunseo@users.noreply.github.com>
Date: Sat, 14 Dec 2024 01:17:56 +0900
Subject: [PATCH 05/24] =?UTF-8?q?feat:=20=EB=A9=A4=EB=B2=84=20=EC=A0=95?=
=?UTF-8?q?=EB=A0=AC=20Select=EB=A5=BC=20mds=EB=A1=9C=20=EA=B5=90=EC=B2=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
현재 Select의 오픈 상태에 따른 스타일링을 반영할 수 없어, mds 수정 사항 요청 상태
---
.../MemberList/filters/MemberListOrder.tsx | 53 +++++++++++++++++++
.../members/main/MemberList/index.tsx | 23 +++-----
2 files changed, 60 insertions(+), 16 deletions(-)
create mode 100644 src/components/members/main/MemberList/filters/MemberListOrder.tsx
diff --git a/src/components/members/main/MemberList/filters/MemberListOrder.tsx b/src/components/members/main/MemberList/filters/MemberListOrder.tsx
new file mode 100644
index 000000000..23a659a37
--- /dev/null
+++ b/src/components/members/main/MemberList/filters/MemberListOrder.tsx
@@ -0,0 +1,53 @@
+import styled from '@emotion/styled';
+import { colors } from '@sopt-makers/colors';
+import { IconSwitchVertical } from '@sopt-makers/icons';
+import { SelectV2 } from '@sopt-makers/ui';
+
+import { Option } from '@/components/members/main/MemberList/filters/constants';
+
+interface MemberListOrderProps {
+ className?: string;
+ value?: Option;
+ options: Option[];
+ onChange?: (value: string) => void;
+}
+
+export function MemberListOrder({ className, value, options, onChange }: MemberListOrderProps) {
+ return (
+
+
+
+ {value?.label}
+
+
+
+
+ {options.map((option) => (
+
+ ))}
+
+
+ );
+}
+
+const TriggerContentWrapper = styled.div`
+ display: flex;
+ gap: 12px;
+ align-items: center;
+ padding: 11px 16px;
+ width: 100%;
+`;
+
+const TriggerContent = styled.div`
+ color: ${colors.gray300};
+
+ & > svg {
+ display: none;
+ }
+`;
+
+const StyledIconSwitchVertical = styled(IconSwitchVertical)`
+ width: 20px;
+ height: 20px;
+ color: ${colors.gray300};
+`;
diff --git a/src/components/members/main/MemberList/index.tsx b/src/components/members/main/MemberList/index.tsx
index 2c5e66153..3de333876 100644
--- a/src/components/members/main/MemberList/index.tsx
+++ b/src/components/members/main/MemberList/index.tsx
@@ -32,6 +32,7 @@ import {
} from '@/components/members/main/MemberList/filters/constants';
import MemberListFilter from '@/components/members/main/MemberList/filters/MemberListFilter';
import MemberListFilterSheet from '@/components/members/main/MemberList/filters/MemberListFilterSheet';
+import { MemberListOrder } from '@/components/members/main/MemberList/filters/MemberListOrder';
import { LATEST_GENERATION } from '@/constants/generation';
import { playgroundLink } from '@/constants/links';
import useIntersectionObserver from '@/hooks/useIntersectionObserver';
@@ -66,7 +67,7 @@ const MemberList: FC = ({ banner }) => {
const [employed, setEmployed] = useState
)}
From 77c5763b771a40974430076c44d8412224805a73 Mon Sep 17 00:00:00 2001
From: Eunseo Sim <55528304+simeunseo@users.noreply.github.com>
Date: Sat, 14 Dec 2024 02:09:17 +0900
Subject: [PATCH 06/24] =?UTF-8?q?feat:=20ProfileSection=20mds=20=EB=B0=98?=
=?UTF-8?q?=EC=98=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 2 +-
src/components/coffeechat/detail/index.tsx | 2 +-
.../detail/ActivitySection/MemberDetail.tsx | 2 +-
.../detail/DetailinfoSection/index.tsx | 18 +-
.../members/detail/ProfileSection/index.tsx | 266 +++++++++++-------
.../members/main/MemberList/index.tsx | 1 -
yarn.lock | 11 +-
7 files changed, 171 insertions(+), 131 deletions(-)
diff --git a/package.json b/package.json
index 5437716f3..8d4e3d144 100644
--- a/package.json
+++ b/package.json
@@ -44,7 +44,7 @@
"@radix-ui/react-tooltip": "^1.0.5",
"@sopt-makers/colors": "^3.0.2",
"@sopt-makers/fonts": "^1.0.0",
- "@sopt-makers/icons": "^1.0.5",
+ "@sopt-makers/icons": "^1.0.7",
"@sopt-makers/ui": "^2.8.1",
"@tanstack/react-query": "^5.4.3",
"@toss/emotion-utils": "^1.1.10",
diff --git a/src/components/coffeechat/detail/index.tsx b/src/components/coffeechat/detail/index.tsx
index 9a61b5ca6..b78194011 100644
--- a/src/components/coffeechat/detail/index.tsx
+++ b/src/components/coffeechat/detail/index.tsx
@@ -79,7 +79,7 @@ export default function CoffeechatDetail({ memberId }: CoffeechatDetailProp) {
isMine={profile.isMine}
isCoffeechatTap
/>
-