Add mentor and learning status updates to skill evaluation
- Introduced `updateSkillMentorStatus` and `updateSkillLearningStatus` functions to manage mentor and learning preferences for skills. - Updated `SkillEvaluationCard` to include buttons for toggling mentor and learning statuses with corresponding icons. - Enhanced `SkillEvaluationGrid` and `SkillEvaluation` components to pass new status update handlers. - Modified `SkillEvaluation` type to accommodate new properties for mentor and learning status.
This commit is contained in:
@@ -21,6 +21,8 @@ export default function EvaluationPage() {
|
||||
loading,
|
||||
updateProfile,
|
||||
updateSkillLevel,
|
||||
updateSkillMentorStatus,
|
||||
updateSkillLearningStatus,
|
||||
addSkillToEvaluation,
|
||||
removeSkillFromEvaluation,
|
||||
initializeEmptyEvaluation,
|
||||
@@ -93,6 +95,8 @@ export default function EvaluationPage() {
|
||||
categories={skillCategories}
|
||||
evaluations={userEvaluation.evaluations}
|
||||
onUpdateSkill={updateSkillLevel}
|
||||
onUpdateMentorStatus={updateSkillMentorStatus}
|
||||
onUpdateLearningStatus={updateSkillLearningStatus}
|
||||
onAddSkill={addSkillToEvaluation}
|
||||
onRemoveSkill={removeSkillFromEvaluation}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user