diff --git a/src/components/modals/channels/Creation.tsx b/src/components/modals/channels/Creation.tsx index f41c6d5..cd78e5d 100644 --- a/src/components/modals/channels/Creation.tsx +++ b/src/components/modals/channels/Creation.tsx @@ -15,7 +15,7 @@ import axios from 'axios' import { HomeDataResponse } from '@/components/pages/dashboard/home/response' interface FormData { - type: "public" | "private"; + type: "Public" | "Private"; name: string; description: string; category: string; @@ -52,7 +52,7 @@ export default function CreateChannelModal({ open, onOpenChange, data }: CreateC const {userData} = useContext(AuthContext) const [step, setStep] = useState(1) const [formData, setFormData] = useState({ - type: "public", + type: "Public", name: "", description: "", category: "", @@ -86,7 +86,7 @@ export default function CreateChannelModal({ open, onOpenChange, data }: CreateC if (!open) { setStep(1) setFormData({ - type: "public", + type: "Public", name: "", description: "", category: "", @@ -282,7 +282,7 @@ export default function CreateChannelModal({ open, onOpenChange, data }: CreateC return ( setFormData(prev => ({ ...prev, type: value }))} + onValueChange={(value: "Public" | "Private") => setFormData(prev => ({ ...prev, type: value }))} className="space-y-4" > {["public", "private"].map((type, index) => ( @@ -340,12 +340,12 @@ export default function CreateChannelModal({ open, onOpenChange, data }: CreateC - Administration - Faculty - Department - School Official - Association - School Partner + Administration + Faculty + Department + School Official + Association + School Partner