diff --git a/app/programs/page.tsx b/app/programs/page.tsx
index d7fc5cd..357be6b 100644
--- a/app/programs/page.tsx
+++ b/app/programs/page.tsx
@@ -1,98 +1,93 @@
-"use client"
-import Programs from "@/comps/Programs";
+'use client';
+import Programs from '@/comps/Programs';
import {
- Dialog,
- DialogContent,
- DialogDescription,
- DialogHeader,
- DialogTitle,
- DialogTrigger,
- DialogFooter,
- DialogClose
- } from "@/components/ui/dialog"
- import { Button } from "@/components/ui/button";
- import { Label } from "@/components/ui/label"
- import { Input } from "@/components/ui/input"
- import { CopyIcon } from "@radix-ui/react-icons"
- import { useEffect, useState } from "react";
-
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogHeader,
+ DialogTitle,
+ DialogTrigger,
+ DialogFooter,
+ DialogClose,
+} from '@/components/ui/dialog';
+import { Button } from '@/components/ui/button';
+import { Label } from '@/components/ui/label';
+import { Input } from '@/components/ui/input';
+import { CopyIcon } from '@radix-ui/react-icons';
+import { useEffect, useState } from 'react';
+export default function program() {
+ const [filterOption, setFilterOption] = useState<"" | "Yes" | "No">(""); // Explicitly define the type
-export default function programs() {
- const [filterOption, setFilterOption] = useState("");
-
- const handleFilterChange = (newOption) => {
- setFilterOption(newOption);
- };
-
- return (
+ const handleFilterChange = (newOption: "" | "Yes" | "No") => {
+ // Only set the filter option if it's one of the allowed values
+ if (newOption === "" || newOption === "Yes" || newOption === "No") {
+ setFilterOption(newOption);
+ }
+ };
+
+ return (
-
-
-
- Opensource Programs List
-
-
- Discover a curated collection of diverse open source programs. Filter based on stipend availability and find opportunities that match your interests and skills.
-
-
-
-
-
-
+
+
+
+ Opensource Programs List
+
+
+ Discover a curated collection of diverse open source programs. Filter based on stipend availability and find opportunities that match your interests and skills.
+