From 8249a88679d0a3e74fa722fccfbfcaf6da2c7c08 Mon Sep 17 00:00:00 2001 From: wukddang <43228743+funkyblues@users.noreply.github.com> Date: Fri, 10 Nov 2023 17:51:15 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20StyleList=20=EA=B4=80=EB=A0=A8=20co?= =?UTF-8?q?nflict=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/ListRow/ProfileListRow.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/common/ListRow/ProfileListRow.tsx b/src/components/common/ListRow/ProfileListRow.tsx index 6d36107e..55e8cbbf 100644 --- a/src/components/common/ListRow/ProfileListRow.tsx +++ b/src/components/common/ListRow/ProfileListRow.tsx @@ -77,8 +77,12 @@ const ProfileListRow = ({ ) } -export const StyleList = styled(FlexBox)` - width: 100%; +export const StyleList = styled(FlexBox)<{ + width?: number + height?: number +}>` + width: ${({ width }) => (width ? `${width}px` : '100%')}; + height: ${({ height }) => (height ? `${height}px` : '')}; display: flex; justify-content: space-between; cursor: pointer;