mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
style: apply prettier across the tree
One-shot prettier pass so the new format:check gate starts from a clean baseline. Formatting only — no behaviour change. Generator-owned and vendored artifacts stay untouched via .prettierignore.
This commit is contained in:
1 parent
b3fea2ef59
commit
1f4ba5939d
1000 files changed
+12130
-8385
No files matched your search
@@ -16,10 +16,11 @@ vi.mock("@/hooks/use-auth", () => ({
|
||||
useAuth: () => ({ isAuthenticated: true, user: mockUser }),
|
||||
}));
|
||||
|
||||
const useAchievementsQuery =
|
||||
vi.fn<(opts?: { enabled?: boolean }) => { data: undefined }>(() => ({
|
||||
data: undefined,
|
||||
}));
|
||||
const useAchievementsQuery = vi.fn<
|
||||
(opts?: { enabled?: boolean }) => { data: undefined }
|
||||
>(() => ({
|
||||
data: undefined,
|
||||
}));
|
||||
|
||||
vi.mock("@/lib/queries/use-achievements-query", () => ({
|
||||
useAchievementsQuery: (opts?: { enabled?: boolean }) =>
|
||||
|
||||
@@ -142,7 +142,11 @@ describe("<RecentAchievementsCard> — achievements module gate", () => {
|
||||
mockData = {
|
||||
summary: {},
|
||||
achievements: [
|
||||
{ ...baseAchievement, id: "a", completedAt: "2026-04-15T12:00:00.000Z" },
|
||||
{
|
||||
...baseAchievement,
|
||||
id: "a",
|
||||
completedAt: "2026-04-15T12:00:00.000Z",
|
||||
},
|
||||
],
|
||||
metrics: {},
|
||||
};
|
||||
@@ -154,7 +158,11 @@ describe("<RecentAchievementsCard> — achievements module gate", () => {
|
||||
mockData = {
|
||||
summary: {},
|
||||
achievements: [
|
||||
{ ...baseAchievement, id: "a", completedAt: "2026-04-15T12:00:00.000Z" },
|
||||
{
|
||||
...baseAchievement,
|
||||
id: "a",
|
||||
completedAt: "2026-04-15T12:00:00.000Z",
|
||||
},
|
||||
],
|
||||
metrics: {},
|
||||
};
|
||||
|
||||
@@ -115,7 +115,10 @@ export function RecentAchievementsCard() {
|
||||
>
|
||||
<div className="flex items-center justify-between gap-3">
|
||||
<div className="flex items-center gap-2">
|
||||
<Trophy className="text-muted-foreground h-4 w-4" aria-hidden="true" />
|
||||
<Trophy
|
||||
className="text-muted-foreground h-4 w-4"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<h2 className="text-sm font-semibold">
|
||||
{t("achievements.dashboardCard.title")}
|
||||
</h2>
|
||||
|
||||
Reference in new issue
Block a user