Skip to content

Commit e717f39

Browse files
committed
Merge branch 'main' into UIdesign_v5
2 parents 9851893 + 2fc6ee2 commit e717f39

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/lib/rules-explanation.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@ import lifespan from "$lib/assets/life-game-rules/lifespan.js?raw";
22
import probabilistics from "$lib/assets/life-game-rules/probabilistics.js?raw";
33

44
export type RuleExplanation = {
5+
name: {
6+
ja: string;
7+
en: string;
8+
};
9+
description: {
10+
ja: string;
11+
en: string;
12+
};
513
code: string;
6-
ja: string;
7-
en: string;
814
};
9-
1015
export const rulesExplanation = {
1116
lifespan: {
1217
name: {

src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
<button
247247
class="card bg-base-100 shadow-md hover:shadow-lg transition-shadow cursor-pointer text-left flex-shrink-0 w-64"
248248
onclick={() => {
249-
selectRule(ruleData.name as RuleExplanation);
249+
selectRule(ruleData as RuleExplanation);
250250
ruleDrawerOpen = false;
251251
}}
252252
>

0 commit comments

Comments
 (0)