Skip to content

Commit

Permalink
streakを表示
Browse files Browse the repository at this point in the history
  • Loading branch information
MurakawaTakuya committed Dec 28, 2024
1 parent 6bc76b5 commit bc10f0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/Components/Account/LoggedInView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export default function LoggedInView() {
<Typography sx={{ textAlign: "center" }}>
ようこそ、{user.name}さん!
</Typography>
<Typography sx={{ textAlign: "center" }}>
連続達成日数: {user.streak}日目
</Typography>
<Typography sx={{ textAlign: "center" }}>
目標達成率: {successRate}%
</Typography>
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Progress/Progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,13 @@ const StepperBlock = ({
</Typography>
<div style={{ display: "flex", gap: "10px" }}>
<Typography level="title-sm" component="span">
{successRate}日連続
{userData?.streak}日連続
</Typography>
<Typography level="title-sm" component="span">
達成率{successRate}%
</Typography>
<Typography level="title-sm" component="span">
{userData?.completed}回達成
累計{userData?.completed}回達成
</Typography>
</div>
</div>
Expand Down

0 comments on commit bc10f0b

Please sign in to comment.