Skip to content

Commit

Permalink
[#123] bugfix: achievement not selected
Browse files Browse the repository at this point in the history
  • Loading branch information
rosieyeon committed Feb 17, 2022
1 parent 01e815d commit 1eca254
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
22 changes: 14 additions & 8 deletions src/components/home/achievement/myachievement.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@ export default function Myachievement({
// console.log(percentage,"퍼센트");
return (
<div className="my-achievement">
<div className="my-achievement__selected">
<img
src={AchieveImg}
alt=""
// style={{ width: "100px", height: "100px" }}
/>
<div className="my-achievement__selected-text">{achieveName}</div>
</div>
{achieveImg ? (
<div className="my-achievement__selected">
<img
src={AchieveImg}
alt=""
// style={{ width: "100px", height: "100px" }}
/>
<div className="my-achievement__selected-text">{achieveName}</div>
</div>
) : (
<div className="my-achievement__not-selected">
선택된 업적이 없습니다
</div>
)}
<div className="my-achievement__percentage">
<div className="my-achievement__percentage__text">업적도감 달성률</div>
<div className="my-achievement__percentage__graph">
Expand Down
6 changes: 6 additions & 0 deletions src/statics/css/home/myAchievement.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/statics/css/home/myAchievement.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/statics/scss/home/myAchievement.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@
width: 68%;
display: inline-block;
}
.my-achievement__not-selected {
text-align: center;
padding-top: 40%;
color: var(--textColor-todo);
}

0 comments on commit 1eca254

Please sign in to comment.