refactor: update data fetching in management pages and improve type imports
- Simplified data extraction from AdminService in SkillsPage, TeamsPage, and UsersPage. - Updated import paths for Team type in user-related components for consistency. - Added id and name properties to SkillCategory interface for better data structure. - Enhanced logging in useSkillsManagement for debugging skill creation process.
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
import {
|
||||
SkillLevel,
|
||||
SKILL_LEVEL_VALUES,
|
||||
CategoryEvaluation,
|
||||
RadarChartData,
|
||||
UserEvaluation,
|
||||
SkillCategory,
|
||||
} from "./types";
|
||||
import { evaluationClient } from "../clients";
|
||||
|
||||
export function calculateCategoryScore(
|
||||
categoryEvaluation: CategoryEvaluation
|
||||
|
||||
@@ -30,6 +30,8 @@ export interface Skill {
|
||||
export interface SkillCategory {
|
||||
category: string;
|
||||
icon: string;
|
||||
id: string;
|
||||
name: string;
|
||||
skills: Skill[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user