refactor: integrate EvaluationClient and remove legacy evaluation actions
- Added EvaluationClient to clients/index.ts and created an instance for use. - Updated client-wrapper.tsx and welcome-screen.tsx to utilize EvaluationClient for evaluation actions. - Removed obsolete evaluation-actions.ts file to streamline codebase and reduce redundancy.
This commit is contained in:
@@ -9,13 +9,14 @@ import {
|
||||
UserProfile,
|
||||
CategoryEvaluation,
|
||||
} from "@/lib/types";
|
||||
import {
|
||||
updateSkillLevel as updateSkillLevelAction,
|
||||
updateSkillMentorStatus as updateSkillMentorStatusAction,
|
||||
updateSkillLearningStatus as updateSkillLearningStatusAction,
|
||||
addSkillToEvaluation as addSkillToEvaluationAction,
|
||||
removeSkillFromEvaluation as removeSkillFromEvaluationAction,
|
||||
} from "@/lib/evaluation-actions";
|
||||
import { evaluationClient } from "@/clients";
|
||||
const {
|
||||
updateSkillLevel: updateSkillLevelAction,
|
||||
updateSkillMentorStatus: updateSkillMentorStatusAction,
|
||||
updateSkillLearningStatus: updateSkillLearningStatusAction,
|
||||
addSkillToEvaluation: addSkillToEvaluationAction,
|
||||
removeSkillFromEvaluation: removeSkillFromEvaluationAction,
|
||||
} = evaluationClient;
|
||||
import { createEmptyEvaluation } from "@/lib/evaluation-utils";
|
||||
|
||||
interface EvaluationClientWrapperProps {
|
||||
|
||||
Reference in New Issue
Block a user