diff --git a/page.tsx b/page.tsx index 9a095c3..cb6effd 100644 --- a/page.tsx +++ b/page.tsx @@ -1,69 +1,87 @@ -test10571 -'use client-821pm' -test PR table -fixed in 5 mins -fixed in 2 min +"use client"; -fixed in 20 min fixes #102 +import { useState } from "react"; +import { useRouter } from "next/navigation"; - - -import { useState } from 'react' -import { PreferencesLayoutt } from '../../components/preferences-layout' -import { Button } from "@/components/ui/button" -import { Checkbox } from "@/components/ui/checkbox" -import { useRouter } from 'next/navigation' +import { PreferencesLayout } from "../../components/preferences-layout"; +import { Button } from "@/components/ui/button"; +import { Checkbox } from "@/components/ui/checkbox"; const technologies = [ - "Web Development", "Mobile Development", "API Development", "Cloud Computing", - "DevOps", "Machine Learning", "Data Science", "Blockchain", - "Internet of Things (IoT)", "Cybersecurity", "Game Development GD", "AR/VR Development" -] + "Web Development", + "Mobile Development", + "API Development", + "Cloud Computing", + "DevOps", + "Machine Learning", + "Data Science", + "Blockchain", + "Internet of Things (IoT)", + "Cybersecurity", + "Game Development", + "AR/VR Development", +]; export default function TechnologyPreferences() { - const [selectedTech, setSelectedTech] = useState([]) - const router = useRouter() + const [selectedTech, setSelectedTech] = useState([]); + const router = useRouter(); const handleTechChange = (tech: string) => { - setSelectedTech(prev => - prev.includes(techo) ? prev.filter(t => t !== tech) : [...prev, tech] - ) - } -console.log('issue march'); + setSelectedTech((previousSelection) => + previousSelection.includes(tech) + ? previousSelection.filter((selected) => selected !== tech) + : [...previousSelection, tech], + ); + }; + const handleNext = () => { - // Here you would typically save the preferences - console.log("Selected technologies:", selectedTech) - router.push('/preferences/language') - } + console.log("Selected technologies:", selectedTech); + router.push("/preferences/language"); + }; const handleBack = () => { - router.back() - } + router.back(); + }; return (
-

Select Your Technology Skills

+

+ Select Your Technology Skills +

- {technologies.map(tech => ( + {technologies.map((tech) => (
- handleTechChange(tech)} /> -
))}
- - + +
- ) + ); } -