Skip to content

Commit

Permalink
fix: Text whiteSpace prop명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jikwan0327 committed Nov 2, 2023
1 parent b5397fe commit 93054af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@team-return/design-system",
"version": "1.1.7",
"version": "1.1.8",
"repository": {
"type": "git",
"url": "https://github.com/Team-Return/JOBIS-DESIGN-SYSTEM.git"
Expand Down
8 changes: 4 additions & 4 deletions src/components/Text/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface TextProps extends marginCssType {
cursor?: CSSProperties['cursor'];
align?: CSSProperties['alignItems'];
width?: number;
whiteSpace?: CSSProperties['whiteSpace'];
whitespace?: CSSProperties['whiteSpace'];
}

export const Text = ({
Expand All @@ -29,7 +29,7 @@ export const Text = ({
align,
margin,
width,
whiteSpace = 'pre-line',
whitespace = 'pre-line',
}: TextProps) => {
return (
<Wrapper
Expand All @@ -41,7 +41,7 @@ export const Text = ({
onClick={onClick}
size={size}
margin={margin}
whiteSpace={whiteSpace}
whitespace={whitespace}
width={width}
>
{children}
Expand All @@ -56,5 +56,5 @@ const Wrapper = styled.div<TextProps>`
${({ margin }) => marginToCss({ margin })};
text-align: ${({ align }) => align};
cursor: ${({ cursor }) => cursor};
white-space: ${({ whiteSpace }) => whiteSpace};
white-space: ${({ whitespace }) => whitespace};
`;

0 comments on commit 93054af

Please sign in to comment.