From ad89eedd9dc1533c2dcaefc6bf9a3ac2615dd419 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Fri, 22 Aug 2025 12:19:59 +0200 Subject: [PATCH] feat: remove create skill in evaluation page --- components/skill-selector.tsx | 38 +---------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/components/skill-selector.tsx b/components/skill-selector.tsx index 4200e6b..27f5757 100644 --- a/components/skill-selector.tsx +++ b/components/skill-selector.tsx @@ -11,10 +11,9 @@ import { DialogTrigger, } from "@/components/ui/dialog"; import { Input } from "@/components/ui/input"; -import { Plus, Search, Sparkles } from "lucide-react"; +import { Plus, Search } from "lucide-react"; import { SkillCategory, CategoryEvaluation } from "@/lib/types"; import { TechIcon } from "./icons/tech-icon"; -import { CreateSkillForm } from "./create-skill-form"; interface SkillSelectorProps { categories: SkillCategory[]; @@ -34,7 +33,6 @@ export function SkillSelector({ onRemoveSkill, }: SkillSelectorProps) { const [isOpen, setIsOpen] = useState(false); - const [isCreateOpen, setIsCreateOpen] = useState(false); const [searchTerm, setSearchTerm] = useState(""); const [isAddingAll, setIsAddingAll] = useState(false); const [addingSkillIds, setAddingSkillIds] = useState>(new Set()); @@ -168,40 +166,6 @@ export function SkillSelector({ )} - {/* Create New Skill Button */} -
- - - - - - - Créer une nouvelle compétence - - Ajoutez une compétence manquante dans la catégorie{" "} - {selectedCategory} - - - { - setIsCreateOpen(false); - setIsOpen(false); - // Ajouter automatiquement la skill créée à l'évaluation - onAddSkill(selectedCategory, skillId); - }} - onCancel={() => setIsCreateOpen(false)} - /> - - -
- {/* Available Skills Grid */}