diff --git a/hindki/astro.config.mjs b/hindki/astro.config.mjs index b89c48d..03b08db 100644 --- a/hindki/astro.config.mjs +++ b/hindki/astro.config.mjs @@ -97,6 +97,7 @@ export default defineConfig({ }, ], components: { + Sidebar: "@/components/Sidebar.astro", PageSidebar: "@/components/PageSidebar.astro", }, }), diff --git a/hindki/src/components/AddVocabForm.tsx b/hindki/src/components/AddVocabForm.tsx index 4db8d41..5d783ba 100644 --- a/hindki/src/components/AddVocabForm.tsx +++ b/hindki/src/components/AddVocabForm.tsx @@ -1,5 +1,6 @@ import React, { useState, useEffect } from 'react'; import type { Tag } from '@/types/types'; +import { titlecase } from '@/lib/utils'; interface WordFormData { english: string; @@ -242,7 +243,7 @@ export default function AddVocabForm() {
- +

Categories

{tags.map((tag) => ( ))}
@@ -286,8 +286,8 @@ export default function AddVocabForm() {
)} - -
+

New Word

+
-
+
-
+
-
+