Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

시대생 프론트엔드 과제 1 PR 이소은 #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

soeun2537
Copy link

Features

  • Clone 및 초기 세팅 (17ec245)
  • Cafeteria component 제작 (c86b20b)
  • Text component 제작 (9555618)
  • Cafeteria, Text storybook 제작 (4d079a6)

Test

  • Storybook example 삭제 (8f034d2)

@commit-lint
Copy link

commit-lint bot commented Oct 13, 2023

Features

  • Clone 및 초기 세팅 (17ec245)
  • Cafeteria component 제작 (c86b20b)
  • Text component 제작 (9555618)
  • Cafeteria, Text storybook 제작 (4d079a6)

Tests

  • Storybook example 삭제 (8f034d2)
Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@soeun2537 soeun2537 changed the title 시대생 프론트엔드 과제 1 PR 시대생 프론트엔드 과제 1 PR 이소은 Oct 13, 2023
Copy link

@ratafa ratafa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

<S.cafeteriaWrapper>
<S.locationWrapper>
<Text
text={cafeteria.location}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

태그 사이에 들어갈 요소가 없다면 '< Text />' 로 간결하게 태그를 표현하는 방법도 있습니당

text={cafeteria.openingHours}
fontSize={15}
fontWeight={500}
color="#808A98"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반복적인 color 값이 들어간다면 해당 값을 상수로 정하시거나, config 폴더를 따로 제작하여 값을 관리하는 방법도 좋아 보여요

return (
<S.textWrapper width={width} lineHeight={lineHeight}>
<S.text
text={text}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

styled-component로 제작된 S.text 컴포넌트에 text 속성이 사용되어지지 않기에, 필요하지 않는 props라고 생각됩니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants