diff options
Diffstat (limited to 'src/zoom')
-rw-r--r-- | src/zoom/ServerWord.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/zoom/ServerWord.tsx b/src/zoom/ServerWord.tsx index d98e54b..75b631d 100644 --- a/src/zoom/ServerWord.tsx +++ b/src/zoom/ServerWord.tsx @@ -39,9 +39,9 @@ export default async function Wordd({ lang: string; }) { const data = db.fetchWordBySpelling(word, "en"); - console.log({ data, word }); if (!data) return <p>oh...</p>; + console.log(data.senses[0]); return ( <Card className="overflow-y-scroll max-h-[80vh]"> <CardHeader> @@ -125,10 +125,10 @@ const ExampleDisplay = ({ examples }: { examples: Example[] }) => { <li key={idx} className="text-xs text-gray-600"> <span className="italic">"{ex.text}"</span> {ex.ref && ( - <span className="text-gray-400 text-xxs"> ({ex.ref})</span> + <span className="text-gray-400 text-xs"> ({ex.ref})</span> )} {ex.type !== "quote" && ( - <span className="ml-1 text-xxs bg-sky-100 text-sky-700 px-1 rounded-sm"> + <span className="ml-1 text-xs bg-sky-100 text-sky-700 px-1 rounded-sm"> {ex.type} </span> )} @@ -162,7 +162,7 @@ const RelatedTermsDisplay = ({ {term.word} </a> {/*term.source && ( - <span className="text-xxs text-gray-400"> ({term.source})</span> + <span className="text-xs text-gray-400"> ({term.source})</span> )*/} {idx < terms.length - 1 && ", "} </React.Fragment> @@ -207,7 +207,7 @@ const SubSenseDisplay = ({ {subSense.categories.map((cat, idx) => ( <span key={idx} - className="text-xxs bg-gray-100 text-gray-700 px-1.5 py-0.5 rounded-full" + className="text-xs bg-gray-100 text-gray-700 px-1.5 py-0.5 rounded-full" > {cat} </span> @@ -229,7 +229,7 @@ const SubSenseDisplay = ({ {subSense.tags.map((tag, idx) => ( <span key={idx} - className="text-xxs bg-purple-100 text-purple-700 px-1.5 py-0.5 rounded-full" + className="text-xs bg-purple-100 text-purple-700 px-1.5 py-0.5 rounded-full" > {tag} </span> |