Skip to content

Commit

Permalink
Merge pull request #112 from capstone-maru/dev
Browse files Browse the repository at this point in the history
release: v0.10.0
  • Loading branch information
cjeongmin authored May 29, 2024
2 parents c5c7e18 + 7d300c2 commit 146109b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maru",
"version": "0.9.1",
"version": "0.10.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
1 change: 1 addition & 0 deletions src/app/pages/main-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export function MainPage() {
percentage={score}
profileImage={profileImageUrl}
location={location}
hideScore={false}
/>
</Link>
),
Expand Down
1 change: 1 addition & 0 deletions src/app/pages/mobile/mobile-main-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export function MobileMainPage() {
percentage={score}
profileImage={profileImageUrl}
location={location}
hideScore={false}
/>
</Link>
),
Expand Down
1 change: 1 addition & 0 deletions src/app/pages/shared-posts-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export function SharedPostsPage() {
percentage={score}
location={location}
profileImage={profileImageUrl}
hideScore={false}
/>
</Link>
),
Expand Down
2 changes: 1 addition & 1 deletion src/components/CircularProfileImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function CircularProfileImage({
return (
<styles.container $diameter={diameter}>
<styles.backgroundContainer $url={url} />
{hideScore === true && (
{hideScore === false && (
<>
<styles.CircularProgressBar
diameter={diameter}
Expand Down
4 changes: 4 additions & 0 deletions src/components/main-page/UserCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,13 @@ export function UserCard({
location,
percentage,
profileImage,
hideScore,
}: {
name: string;
location: string;
percentage: number;
profileImage: string;
hideScore?: boolean;
}) {
const isMobile = useIsMobile();
return (
Expand All @@ -109,12 +111,14 @@ export function UserCard({
diameter={65}
percentage={percentage}
url={profileImage}
hideScore={hideScore}
/>
) : (
<CircularProfileImage
diameter={110}
percentage={percentage}
url={profileImage}
hideScore={hideScore}
/>
)}
<div>
Expand Down

0 comments on commit 146109b

Please sign in to comment.