-
Notifications
You must be signed in to change notification settings - Fork 6
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
UOSLIFE-Assignment-FE-1 #2
base: master
Are you sure you want to change the base?
Conversation
Chaehee03
commented
Jul 2, 2023
- Text 컴포넌트, Cafteria 컴포넌트 작성.
- 스토리북 작성.
ContributorsCommit-Lint commandsYou can trigger Commit-Lint actions by commenting on this PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다. :)
@@ -0,0 +1,58 @@ | |||
import styled from "styled-components"; | |||
|
|||
export const TabContainer = styled("div")` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
styled.div``;으로도 사용 가능합니다.
}; | ||
|
||
export default Text; | ||
const StyledText = styled.div<TextProps>` | ||
font-size: ${(props) => props.fontSize}px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
객체 비구조화 할당을 사용하여
font-size: ${({fontSize}) => fontSize}px 로도 사용 가능합니다
|
||
export default Cafeteria; | ||
export const Cafeteria = ({ cafeteria }: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any 대신 Cafeteria.type을 가져다쓰면 좋을 것 같습니다!
color="#656D78" | ||
/> | ||
</InfoTime> | ||
</InfoContent1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
변수명을 다른 개발자들도 알아볼 수 있도록 잘 지어주세요!
InfoContent1, InfoContent2 이렇게 숫자로 변수의 속성을 나타내는 것 보다는 InfoContent 라는 하나의 공통된 변수로 표현해주는게 더욱 용이하다고 생각합니다