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

[Feature] 리뉴얼된 디자인 반영 및 각종 아이콘/그래픽 통일성 부여 #308

Merged
merged 18 commits into from
Jun 24, 2024

Conversation

rmdnps10
Copy link
Contributor

Checklist


  • 올바른 브랜치에 PR을 보내도록 설정하였나요?
  • PR의 라벨을 올바르게 달았나요?

Description


남은 리뉴얼된 디자인들을 반영하면서, 자잘한 Hotfix 해결, 아이콘/디자인 통일 등을 구현했습니다.

Related Issues


#307

To Reveiwer


피그마에서 아직 <작업 중> 딱지가 붙은 페이지는 작업하지 않았습니다! 그 외 나머지 새로 나온 디자인들은 모두 반영하려고 했는데, 반영안된거나 문제가 있으면 말씀해주세요.

@rmdnps10 rmdnps10 added Bug 기능 오류 발생 및 픽스 API API 관련 Feature 기능 개발 Priority-1 🔥 priority 1 Chore 자잘한 수정 labels Jun 21, 2024
@rmdnps10 rmdnps10 self-assigned this Jun 21, 2024
Copy link

netlify bot commented Jun 21, 2024

Deploy Preview for candid-semolina-d0db42 ready!

Name Link
🔨 Latest commit 4508d37
🔍 Latest deploy log https://app.netlify.com/sites/candid-semolina-d0db42/deploys/667944344fc7f50008670e0d
😎 Deploy Preview https://deploy-preview-308--candid-semolina-d0db42.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@kyuhho kyuhho left a comment

Choose a reason for hiding this comment

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

꼼꼼히 작업하신 것 같아요!! 정말 고생하셨습니다 😊

Comment on lines +92 to +101
width: 100%;
span#current-time {
color: ${Green};
}
.row1 {
display: flex;
width: 100%;
align-items: center;
}
`;
Copy link
Contributor

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 !== '') {
Copy link
Contributor

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 리렌더를 줄일 수 있을 것 같습니다~!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

감사합니다! 이 방식이 더 효율적일 거 같아서 반영하였습니다:)

Comment on lines +109 to +130
{
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) => {
Copy link
Contributor

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()}
        ...
}

@rmdnps10 rmdnps10 merged commit 0e3f439 into dev Jun 24, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API 관련 Bug 기능 오류 발생 및 픽스 Chore 자잘한 수정 Feature 기능 개발 Priority-1 🔥 priority 1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants