Skip to content

Commit

Permalink
/create とその通信
Browse files Browse the repository at this point in the history
  • Loading branch information
wappon28dev committed Sep 4, 2024
1 parent 460c3f0 commit 46e3dbf
Show file tree
Hide file tree
Showing 8 changed files with 195 additions and 73 deletions.
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"dependencies": {
"@fontsource-variable/noto-sans-jp": "^5.0.19",
"@generouted/react-router": "^1.19.3",
"@hookform/resolvers": "^3.9.0",
"@iconify/react": "^4.1.1",
"@nanostores/persistent": "^0.10.1",
"@nanostores/react": "^0.7.2",
Expand Down Expand Up @@ -66,6 +67,6 @@
"typescript": "^5.4.5",
"vite": "^5.2.0",
"vite-tsconfig-paths": "^4.3.2",
"wrangler": "^3.61.0"
"wrangler": "^3.73.0"
}
}
8 changes: 6 additions & 2 deletions src/components/achievements/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ export function AchievementCard({
</Description>
</Flex>

<Tags as="div">#{achievement.tags[0].name}</Tags>
<Tags as="div">#{achievement.tags[0].name}</Tags>
{achievement.tags.map((t, idx) => (
// eslint-disable-next-line react/no-array-index-key
<Tags key={`${idx}_${t}`} as="div">
#{t}
</Tags>
))}
</CardStyle>
);
}
4 changes: 2 additions & 2 deletions src/components/achievements/UnlockableCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export function UnlockableCard({
</Description>
</Flex>

<Tags as="div">#{achievement.tags[0].name}</Tags>
<Tags as="div">#{achievement.tags[0].name}</Tags>
<Tags as="div">#{achievement.tags}</Tags>
<Tags as="div">#{achievement.tags}</Tags>
</CardStyle>
);
}
2 changes: 1 addition & 1 deletion src/lib/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ export function getLocalStorageKey(key: string, trailingColon = false): string {
return `${APP_NAME}.v${LOCAL_STORAGE_VERSION}.${key}${trailingColon ? ":" : ""}`;
}

export const DB_VERSION = "1";
export const DB_VERSION = "2";
2 changes: 1 addition & 1 deletion src/pages/achievements/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function Page(): ReactElement {
<p>icon: {d.icon}</p>
<p>createdAt: {String(d.createdAt)}</p>
<p>updatedAt: {String(d.updatedAt)}</p>
<p>tags: {d.tags.map((tag) => tag.name).join(", ")}</p>
<p>tags: {d.tags.join(", ")}</p>
</div>
);
}
Expand Down
Loading

0 comments on commit 46e3dbf

Please sign in to comment.