-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Feature] 리뉴얼된 디자인 반영 및 각종 아이콘/그래픽 통일성 부여 #308
Conversation
✅ Deploy Preview for candid-semolina-d0db42 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
꼼꼼히 작업하신 것 같아요!! 정말 고생하셨습니다 😊
width: 100%; | ||
span#current-time { | ||
color: ${Green}; | ||
} | ||
.row1 { | ||
display: flex; | ||
width: 100%; | ||
align-items: center; | ||
} | ||
`; |
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.
💡(suggestion) flex 컴포넌트가 추가되어 추후에 활용하면 좋을 것 같아요!
@@ -42,7 +43,7 @@ function SellerRefundBankAccount() { | |||
fetchAccountData(); | |||
}, []); | |||
useEffect(() => { | |||
if (accountNum !== '' && bankType !== '' && owner !== '') { |
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.
💡(suggestion) 이렇게 세가지가 역인 state의 경우, 꼭 isActiveFinishButton
state를 따로 선언하여 useEffect로 관리하지 않아도,
const [accountNum, setAccountNum] = useState<string>('');
const [bankType, setBankType] = useState<string>('');
const [owner, setOwner] = useState<string>('');
const isActiveFinishButton = accountNum?.length > 0 && bankType?.length > 0 && owner?.length > 0;
위와 같이 구현하면 state로 인한 DOM 리렌더를 줄일 수 있을 것 같습니다~!
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.
감사합니다! 이 방식이 더 효율적일 거 같아서 반영하였습니다:)
{ | ||
isLoading ? ( | ||
<div | ||
style={{ | ||
height: 'calc(70vh)', | ||
display: 'flex', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<LoadingSpinner /> | ||
</div> | ||
) : // 상담카드 부분 | ||
openConsultList.length === 0 ? ( | ||
<EmptyWrapper> | ||
<EmptyIcon /> | ||
<Heading>아직 진행한 상담이 없어요</Heading> | ||
<Space height="1rem" /> | ||
<Body2>상담은 공개상담 탭에서 신청할 수 있어요.</Body2> | ||
</EmptyWrapper> | ||
) : ( | ||
<BuyerOpenConsultCardList> | ||
{openConsultList?.map((item) => { |
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.
💡(suggestion) 이렇게 nested 삼항연산자를 사용해야하는 구조의 경우에는 아래와 같이 작성하여 가독성을 높일 수 있을 것 같습니다!
const renderConsultCard = ()=>{
if(isLoading){
return ...
}
if(openConsultList.length === 0){
return ...
}
return ...
}
//
//
//
return {
<>
{renderConsultCard()}
...
}
Checklist
Description
남은 리뉴얼된 디자인들을 반영하면서, 자잘한 Hotfix 해결, 아이콘/디자인 통일 등을 구현했습니다.
Related Issues
#307
To Reveiwer
피그마에서 아직 <작업 중> 딱지가 붙은 페이지는 작업하지 않았습니다! 그 외 나머지 새로 나온 디자인들은 모두 반영하려고 했는데, 반영안된거나 문제가 있으면 말씀해주세요.