Skip to content

Commit

Permalink
fix: 스타일드 컴포넌트 custom prop 이름 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
abiriadev committed Jul 5, 2024
1 parent d0a1695 commit f741e45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Components/Common/InfoField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const InfoField = ({
width={width}
titleWidth={titleWidth}
contentWidth={contentWidth}
flexDirection={flexDirection}
$flexDirection={flexDirection}
gap={gap}
disabled={disabled}
fontSize={fontSize}
Expand All @@ -44,24 +44,24 @@ const InfoFieldWrapper = styled.div<{
width?: string;
titleWidth?: number;
contentWidth?: string;
flexDirection?: string;
$flexDirection?: string;
gap?: number;
disabled?: boolean;
fontSize?: number;
}>`
display: flex;
flex-direction: ${(props) => props.flexDirection || 'row'};
flex-direction: ${(props) => props.$flexDirection || 'row'};
width: ${(props) => props.width};
text-align: start;
gap: ${(props) => (props.flexDirection ? '8px' : '24px')};
gap: ${(props) => (props.$flexDirection ? '8px' : '24px')};
font-size: ${(props) => (props.fontSize ? props.fontSize : props.theme.font.medium)};
font-weight: 500;
line-height: 24px;
.field {
&__title {
text-align: start;
width: ${(props) => props.flexDirection || '184px'};
width: ${(props) => props.$flexDirection || '184px'};
color: ${({ theme, disabled }) => (disabled ? 'rgba(0, 0, 0, 0.25)' : theme.color.black4)};
${media.tablet} {
width: auto;
Expand Down

0 comments on commit f741e45

Please sign in to comment.