We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c49888 commit 2fc6ee2Copy full SHA for 2fc6ee2
2 files changed
src/lib/rules-explanation.ts
@@ -2,11 +2,16 @@ import lifespan from "$lib/assets/life-game-rules/lifespan.js?raw";
2
import probabilistics from "$lib/assets/life-game-rules/probabilistics.js?raw";
3
4
export type RuleExplanation = {
5
+ name: {
6
+ ja: string;
7
+ en: string;
8
+ };
9
+ description: {
10
11
12
13
code: string;
- ja: string;
- en: string;
14
};
-
15
export const rulesExplanation = {
16
lifespan: {
17
name: {
src/routes/+page.svelte
@@ -236,7 +236,7 @@
236
<button
237
class="card bg-base-100 shadow-md hover:shadow-lg transition-shadow cursor-pointer text-left flex-shrink-0 w-64"
238
onclick={() => {
239
- selectRule(ruleData.name as RuleExplanation);
+ selectRule(ruleData as RuleExplanation);
240
ruleDrawerOpen = false;
241
}}
242
>
0 commit comments