feat: importance in db and mentorcard home colors
This commit is contained in:
@@ -51,6 +51,7 @@ export function SkillsManagementPage({
|
||||
handleEditSkill,
|
||||
handleUpdateSkill,
|
||||
handleDeleteSkill,
|
||||
handleImportanceChange,
|
||||
} = useSkillsManagement(skillCategories, initialSkills);
|
||||
|
||||
// Utilisation du hook factorisé pour la vue arborescente
|
||||
@@ -93,6 +94,13 @@ export function SkillsManagementPage({
|
||||
openEditDialog();
|
||||
};
|
||||
|
||||
const handleImportanceChangeWrapper = async (
|
||||
skillId: string,
|
||||
newImportance: string
|
||||
) => {
|
||||
await handleImportanceChange(skillId, newImportance);
|
||||
};
|
||||
|
||||
const headerActions = (
|
||||
<Button onClick={handleOpenCreateDialog}>
|
||||
<Plus className="w-4 h-4 mr-2" />
|
||||
@@ -137,6 +145,7 @@ export function SkillsManagementPage({
|
||||
onEditSkill={handleOpenEditDialog}
|
||||
onDeleteSkill={handleDeleteSkill}
|
||||
onDeleteCategory={handleDeleteCategory}
|
||||
onImportanceChange={handleImportanceChangeWrapper}
|
||||
/>
|
||||
</TreeViewPage>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user