Skip to content

Commit

Permalink
feat: 내용이 없을 경우 공백 렌더링
Browse files Browse the repository at this point in the history
  • Loading branch information
pakxe committed Sep 26, 2024
1 parent 86fac63 commit 7e2ef26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Design/components/Text/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Text: React.FC<TextProps> = ({size = 'body', textColor = 'black', children
const {theme} = useTheme();
return (
<p css={getSizeStyling({size, textColor, theme})} {...attributes}>
{children}
{children === '' ? '\u00A0' : children}
</p>
);
};
Expand Down

0 comments on commit 7e2ef26

Please sign in to comment.