summaryrefslogtreecommitdiff
path: root/src/pages/tones.tsx
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-06-03 15:41:31 +0700
committerpolwex <polwex@sortug.com>2025-06-03 15:41:31 +0700
commit175ddca375cef765cec8ca5bbc527a205c40bf25 (patch)
treef2e47a5d85e4d5e0297613e5a17cebce7d09b09b /src/pages/tones.tsx
parent2401217a4019938d1c1cc61b6e33ccb233eb6e74 (diff)
preeeeettty much done FUCK YES
Diffstat (limited to 'src/pages/tones.tsx')
-rw-r--r--src/pages/tones.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/tones.tsx b/src/pages/tones.tsx
index 96ed56c..732ebd1 100644
--- a/src/pages/tones.tsx
+++ b/src/pages/tones.tsx
@@ -12,9 +12,9 @@ export const getConfig = async () => {
// Function to fetch the initial word on the server
async function InitialWordLoader() {
// Fetch a random 1-syllable Thai word with any tone initially
- const initialWord = await fetchWordsByToneAndSyllables(["rising", "mid"]);
- console.log({ initialWord });
- return <ToneSelectorClient initialWord={initialWord} />;
+ const tones = ["falling", "falling"];
+ const initialWords = await fetchWordsByToneAndSyllables(tones);
+ return <ToneSelectorClient initialData={initialWords} initialTones={tones} />;
}
// Loading fallback component