-
Notifications
You must be signed in to change notification settings - Fork 0
[OD-150] profile, profileEdit, accountEdit, accountCancel, accountSetting, verification 기존 폰트 및 색상 삭제 후 수정 #116
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
Conversation
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.
아래 요소들에 대해 전반적인 점검이 필요합니다!
- import문 점검
a. 상대 경로에서 index 파일을 import할 때에는 '.../index'와 같이/index필요
b. 모든 경로에서 dto 파일을 import할 때에는 import type {...} from '.../dto'처럼type필요 - 컬러시스템 점검
a. 컬러시스템이 text/background/border에 대해 세분화되어 있어, 이를 활용하는 방향으로 적용해 주시면 좋을 것 같습니다 - 예전 폰트 스타일 삭제
a. 작업하신 영역에서 아직 예전 폰트 스타일이 일부 남아 있습니다! 코멘트 남겨두었으니 확인하셔서 수정 부탁드립니다 - 인라인 css 삭제
- 이 외에는 코멘트 참고해 주시면 되겠습니다!
이 브랜치가 머지된 후에는 새 브랜치에서 아래 작업이 추가로 필요합니다
- 변수 명명 규칙에 따라 변수명 점검
- 전체 코드 흐름 점검
- ConfirmationModal -> Modal로 대체
아자아자 파이팅입니다다다다!!!
src/pages/AccountCancel/index.tsx
Outdated
| <label style={{ display: 'flex', alignItems: 'center', cursor: 'pointer' }}> | ||
| <CheckboxInput type="checkbox" checked={isChecked} onChange={handleCheckboxChange} /> | ||
| <StyledText as="span" $textTheme={{ style: 'body4-light', lineHeight: 1 }} color={theme.colors.gray3}> | ||
| <StyledText as="span" $textTheme={{ style: 'body4-light', lineHeight: 1 }} color={theme.colors.gray[600]}> |
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.
StyledText 등 폰트에 대해서는 되도록 theme.colors.text에 있는 값을 사용해 주시면 좋을 것 같아용 추가로 lineHeight 삭제해 주세요! 이 외에 다른 StyledText나 스타일드 컴포넌트 내 color 속성도 한번씩 점검 부탁드립니다!!
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.
또한 여기에 사용된 body4-light는 예전 폰트 스타일입니다! 수정 부탁드려용
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.
theme.colors.text로 다 수정했습니다
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.
lineHeight 다 삭제했습니다
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.
예전 폰트 다 수정했습니다
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.
아 아직 수정중이야!
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.
내가 보려고.. 쓰는중 ..
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.
ㅋㅋㅋㅋ 조아요 파이팅.....
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.
theme.colors.background에 없는 컬러들을 쓰고 있는 background는 일단 그냥 둘게요 .. ㅜ
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.
넵!! background나 border에 없는 색들은 최대한 colors 내부에서 뽑아쓰고 그마저도 안 되면 일단은 색상코드나 rgb 쓰는 식으로 해주세용
src/pages/AccountCancel/index.tsx
Outdated
| </InfoItem> | ||
| </InfoBox> | ||
| <CheckboxWrapper as="div"> | ||
| <label style={{ display: 'flex', alignItems: 'center', cursor: 'pointer' }}> |
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.
인라인 css는 더 이상 사용하지 않기로 결정했습니다! 대신에 class나 styled component 사용해 수정해 주세용
src/pages/AccountCancel/styles.tsx
Outdated
| export const InfoBox = styled.div` | ||
| background: #f5f5f5; | ||
| padding: 70px; /* 20px */ | ||
| background: ${({ theme }) => theme.colors.gray[100]}; |
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.
background에 사용되는 색상은 theme.colors.background에 정리되어 있습니다! 이걸 사용해 주시면 유지보수 측면에서 더 좋을 것 같아요 여기 말고도 다른 background도 한번씩 점검해 주세용
| width: 1.25rem; | ||
| height: 1.25rem; | ||
| border: 0.125rem solid #e0e0e0; | ||
| border: 0.125rem solid ${({ theme }) => theme.colors.gray[200]}; |
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.
theme.colors.border 속성을 사용해 주시면 좋을 것 같아요!
src/pages/AccountCancel/styles.tsx
Outdated
| export const StyledButton = styled.button<ButtonProps>` | ||
| margin-top: 18.75rem; /* 300px */ | ||
| background: ${(props) => (props.isChecked ? 'black' : '#ccc')}; | ||
| border-radius: 0.5rem; /* 8px */ | ||
| margin-top: 18.75rem; | ||
| background: ${({ theme, isChecked }) => | ||
| isChecked ? theme.colors.black : theme.colors.gray[300]}; | ||
| border-radius: 0.5rem; | ||
| border: none; | ||
| padding: 1.5625rem; /* 25px */ | ||
| padding: 1.5625rem; | ||
| text-align: center; | ||
| font-size: 1rem; /* 16px */ | ||
| color: white; | ||
| font-size: 1rem; | ||
| color: ${({ theme }) => theme.colors.white}; | ||
| cursor: ${(props) => (props.isChecked ? 'pointer' : 'not-allowed')}; | ||
| &:disabled { | ||
| background: #00000080; | ||
| background: ${({ theme }) => `${theme.colors.black}80`}; | ||
| } | ||
| `; |
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.
사용되지 않는 컴포넌트 같습니다! 확인 부탁드려요
src/pages/ProfileEdit/index.tsx
Outdated
| import Loading from '@components/Loading'; | ||
| import camera from '@assets/default/camera.svg'; | ||
| import { getUserInfoApi, patchUserInfoApi } from '@apis/user'; | ||
| import { UserInfoData, PatchUserInfoRequest } from '@apis/user/dto'; |
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.
dto를 import할 때는 import type {...} from '.../dto'와 같이 작성해 주셔야 린트가 적용될 수 있으니 수정 부탁드립니다!
| import { StyledText } from '@components/Text/StyledText'; | ||
| import theme from '@styles/theme'; | ||
|
|
||
| const ButtonSecondary: React.FC = () => { |
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.
요기 button1-regular는 예전 폰트 스타일입니다! 수정 부탁드립니닷 color도 수정이 필요할 것 같네용
| height: 3.1rem; | ||
| text-align: center; | ||
| color: #ff2389; | ||
| color: ${({ theme }) => theme.colors.brand.primary}; |
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.
color 속성을 버튼에 부여하는 대신 StyledText에서 theme.colors.brand.primary로 설정하면 버튼에서는 color 속성을 삭제해도 될 것 같아 보이네요!
src/pages/Profile/index.tsx
Outdated
| import { UserPostSummary } from '@apis/post/dto'; | ||
| import { UserInfoData } from '@apis/user/dto'; |
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.
dto를 import할 때는 import type으로 작성해 주셔야 린트 설정으로 import문 정렬이 가능해지니 수정 부탁드립니다! 다른 부분도 한번씩 점검 부탁드려용
src/pages/Profile/index.tsx
Outdated
| import NavbarProfile from './NavbarProfile'; | ||
| import NavBar from '../../components/NavBar'; | ||
| import ButtonSecondary from './ButtonSecondary'; |
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.
상대경로로 index 파일을 import할 때에는 경로에 /index를 작성해 주셔야 린트가 올바르게 적용될 수 있습니다! 수정 부탁드려요
주요 작업 내용
기타 작업 내용
코드 리뷰 포인트
작업 화면