Skip to content

Commit

Permalink
[Fix]/#76- 누구 테스트 완료 시 상위 3위 랭킹만 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaem03 authored Nov 15, 2024
2 parents a75f21f + c49cf46 commit 68dd1f0
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 53 deletions.
Binary file added public/images/nugu-heart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 0 additions & 50 deletions public/images/nugu-heart.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/nuguTest/NuguTestHome.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//소유자의 테스트홈(테스트를 만들지 않았을 경우)
import * as S from "./styled";
import NuguHeart from "/images/nugu-heart.svg";
import NuguHeart from "/images/nugu-heart.png";
import { HOME_TEXT } from "@constants/nuguTest";
export const NuguTestHome = ({ username, isOwner }) => {
const texts = isOwner ? HOME_TEXT.Owner.text : HOME_TEXT.Challenger.text;
Expand Down
1 change: 1 addition & 0 deletions src/components/nuguTest/NuguTestTrue.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const NuguTestTrue = ({ username }) => {
try {
const data = await getNuguTestRanking();
setRanking(data);
console.log("user의 누구테스트 순위", ranking);
} catch (err) {
console.log(err);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/nuguTestRanking/NonRankingBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const NonRankingBox = ({ ranking, highlightIndex = -1, isComplete }) => {
};
return (
<>
{ranking.map((user, index) => {
{ranking.slice(0, 3).map((user, index) => {
const isHighlighted = highlightIndex !== -1 && index === highlightIndex;
return (
<S.Wrapper
Expand Down
3 changes: 2 additions & 1 deletion src/pages/onBoarding/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export const Wrapper = styled.div`
width: 100%;
min-height: 100vh;
gap: 3rem;
/* padding-bottom: 4rem; */
padding-bottom: 5rem;
padding-top: 1rem;
`;

Expand Down

0 comments on commit 68dd1f0

Please sign in to comment.