Skip to content

Commit

Permalink
[Style] SectionTitle 컴포넌트 스타일 수정 (#281)
Browse files Browse the repository at this point in the history
* fix: optional desc 적용

* fix: 설명 있을때만 돔 생성

* fix: 윤호님 리뷰 적용

---------

Co-authored-by: byun sumi <sumi@adenasoft.com>
  • Loading branch information
sumi-0011 and byun sumi authored Sep 22, 2023
1 parent f04621b commit 860d4ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/SectionTitle/SectionTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ interface SectionTitleProps {
export function SectionTitle({ label, title, description, ...layoutProps }: SectionTitleProps) {
return (
<div css={layoutCss} {...layoutProps}>
<h4 css={labelCss}>{label}</h4>
<h2 css={titleCss}>{title}</h2>
<p css={descriptionCss}>{description}</p>
{label && <h4 css={labelCss}>{label}</h4>}
{title && <h2 css={titleCss}>{title}</h2>}
{description && <p css={descriptionCss}>{description}</p>}
</div>
);
}
Expand Down

0 comments on commit 860d4ad

Please sign in to comment.