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

라우트 정리 #157 #181

Merged
merged 13 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
design(review-section): 리뷰 없을 때 레이아웃 여백 추가
  • Loading branch information
joojjang committed Oct 2, 2024
commit 7fc08daccec044a6a356fe61413568bac692950a
4 changes: 2 additions & 2 deletions src/pages/challenge-detail/ranking-section/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const RankingSection = ({ id }: RankingSectionProps) => {
}, [inView, hasNext, isFetching, id, page]);

return (
<S.RankingWrapper>
<S.Wrapper>
{rankingList.length > 0 ? (
// 랭킹 있을 때
<>
Expand All @@ -77,6 +77,6 @@ export const RankingSection = ({ id }: RankingSectionProps) => {
</S.Text>
)}
<S.Text ref={ref}>{isFetching ? '로딩 중...' : ' '}</S.Text>
</S.RankingWrapper>
</S.Wrapper>
);
};
2 changes: 1 addition & 1 deletion src/pages/challenge-detail/ranking-section/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const Text = styled.span<{ fontWeight?: string; color?: string }>`
color: ${(props) => props.color || null};
`;

export const RankingWrapper = styled.div`
export const Wrapper = styled.div`
padding: 16px 16px;
display: flex;
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/challenge-detail/review-section/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export const Text = styled.span<{ fontWeight?: string; color?: string }>`
`;

export const Wrapper = styled.div`
padding: 16px 16px;
display: flex;
flex-direction: column;
height: auto;
`;

export const RatingContainer = styled.div`
Expand Down